зеркало из https://github.com/mozilla/gecko-dev.git
More autocomplete groundwork.
This commit is contained in:
Родитель
6c9718b29e
Коммит
aed4094987
|
@ -23,10 +23,12 @@
|
|||
|
||||
#import <AppKit/AppKit.h>
|
||||
#import "BrowserWindowController.h"
|
||||
#import "CHAutoCompleteDataSource.h"
|
||||
|
||||
@interface CHAutoCompleteTableView : NSTableView {
|
||||
IBOutlet NSTextField* mURLBar;
|
||||
IBOutlet BrowserWindowController* mWindowController;
|
||||
CHAutoCompleteDataSource* mDataSource;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
{
|
||||
if ((self = [super initWithFrame: aRect])) {
|
||||
// Create our data source.
|
||||
CHAutoCompleteDataSource* ds = [[[CHAutoCompleteDataSource alloc] init] autorelease];
|
||||
[self setDataSource: ds];
|
||||
mDataSource = [[CHAutoCompleteDataSource alloc] init];
|
||||
[self setDataSource: mDataSource];
|
||||
|
||||
// Create the URL column.
|
||||
NSTableColumn* urlColumn = [[[NSTableColumn alloc] initWithIdentifier:@"URL"] autorelease];
|
||||
|
@ -42,8 +42,15 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
-(void)dealloc
|
||||
{
|
||||
[mDataSource release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
-(void)controlTextDidChange:(NSNotification*)aNotification
|
||||
{
|
||||
// [[[[mWindowController window] contentView] superview] addSubview: self];
|
||||
}
|
||||
|
||||
-(void)controlTextDidEndEditing:(NSNotification*)aNotification
|
||||
|
|
|
@ -23,10 +23,12 @@
|
|||
|
||||
#import <AppKit/AppKit.h>
|
||||
#import "BrowserWindowController.h"
|
||||
#import "CHAutoCompleteDataSource.h"
|
||||
|
||||
@interface CHAutoCompleteTableView : NSTableView {
|
||||
IBOutlet NSTextField* mURLBar;
|
||||
IBOutlet BrowserWindowController* mWindowController;
|
||||
CHAutoCompleteDataSource* mDataSource;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
{
|
||||
if ((self = [super initWithFrame: aRect])) {
|
||||
// Create our data source.
|
||||
CHAutoCompleteDataSource* ds = [[[CHAutoCompleteDataSource alloc] init] autorelease];
|
||||
[self setDataSource: ds];
|
||||
mDataSource = [[CHAutoCompleteDataSource alloc] init];
|
||||
[self setDataSource: mDataSource];
|
||||
|
||||
// Create the URL column.
|
||||
NSTableColumn* urlColumn = [[[NSTableColumn alloc] initWithIdentifier:@"URL"] autorelease];
|
||||
|
@ -42,8 +42,15 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
-(void)dealloc
|
||||
{
|
||||
[mDataSource release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
-(void)controlTextDidChange:(NSNotification*)aNotification
|
||||
{
|
||||
// [[[[mWindowController window] contentView] superview] addSubview: self];
|
||||
}
|
||||
|
||||
-(void)controlTextDidEndEditing:(NSNotification*)aNotification
|
||||
|
|
Загрузка…
Ссылка в новой задаче