diff --git a/camino/CHAutoCompleteDataSource.mm b/camino/CHAutoCompleteDataSource.mm index 03c8f7b8096..d77993f50e7 100644 --- a/camino/CHAutoCompleteDataSource.mm +++ b/camino/CHAutoCompleteDataSource.mm @@ -21,8 +21,19 @@ * David Hyatt (Original Author) */ +#import #import "CHAutoCompleteDataSource.h" @implementation CHAutoCompleteDataSource +-(int)numberOfRowsInTableView:(NSTableView*)aTableView +{ + return 0; +} + +-(id)tableView:(NSTableView*)aTableView objectValueForTableColumn:(NSTableColumn*)aTableColumn row:(int)aRowIndex +{ + return @""; +} + @end diff --git a/camino/CHAutoCompleteTableView.mm b/camino/CHAutoCompleteTableView.mm index cb963a03be5..7407ff7e34a 100644 --- a/camino/CHAutoCompleteTableView.mm +++ b/camino/CHAutoCompleteTableView.mm @@ -22,12 +22,28 @@ */ #import "CHAutoCompleteTableView.h" +#import "CHAutoCompleteDataSource.h" @implementation CHAutoCompleteTableView +-(id)initWithFrame:(NSRect)aRect +{ + if ((self = [super initWithFrame: aRect])) { + // Create our data source. + CHAutoCompleteDataSource* ds = [[[CHAutoCompleteDataSource alloc] init] autorelease]; + [self setDataSource: ds]; + + // Create the URL column. + NSTableColumn* urlColumn = [[[NSTableColumn alloc] initWithIdentifier:@"URL"] autorelease]; + [self addTableColumn: urlColumn]; + NSTableColumn* titleColumn = [[[NSTableColumn alloc] initWithIdentifier:@"Title"] autorelease]; + [self addTableColumn: titleColumn]; + } + return self; +} + -(void)controlTextDidChange:(NSNotification*)aNotification { - printf("Input changed.\n"); } -(void)controlTextDidEndEditing:(NSNotification*)aNotification diff --git a/camino/src/browser/AutoCompleteDataSource.mm b/camino/src/browser/AutoCompleteDataSource.mm index 03c8f7b8096..d77993f50e7 100644 --- a/camino/src/browser/AutoCompleteDataSource.mm +++ b/camino/src/browser/AutoCompleteDataSource.mm @@ -21,8 +21,19 @@ * David Hyatt (Original Author) */ +#import #import "CHAutoCompleteDataSource.h" @implementation CHAutoCompleteDataSource +-(int)numberOfRowsInTableView:(NSTableView*)aTableView +{ + return 0; +} + +-(id)tableView:(NSTableView*)aTableView objectValueForTableColumn:(NSTableColumn*)aTableColumn row:(int)aRowIndex +{ + return @""; +} + @end diff --git a/chimera/CHAutoCompleteDataSource.mm b/chimera/CHAutoCompleteDataSource.mm index 03c8f7b8096..d77993f50e7 100644 --- a/chimera/CHAutoCompleteDataSource.mm +++ b/chimera/CHAutoCompleteDataSource.mm @@ -21,8 +21,19 @@ * David Hyatt (Original Author) */ +#import #import "CHAutoCompleteDataSource.h" @implementation CHAutoCompleteDataSource +-(int)numberOfRowsInTableView:(NSTableView*)aTableView +{ + return 0; +} + +-(id)tableView:(NSTableView*)aTableView objectValueForTableColumn:(NSTableColumn*)aTableColumn row:(int)aRowIndex +{ + return @""; +} + @end diff --git a/chimera/CHAutoCompleteTableView.mm b/chimera/CHAutoCompleteTableView.mm index cb963a03be5..7407ff7e34a 100644 --- a/chimera/CHAutoCompleteTableView.mm +++ b/chimera/CHAutoCompleteTableView.mm @@ -22,12 +22,28 @@ */ #import "CHAutoCompleteTableView.h" +#import "CHAutoCompleteDataSource.h" @implementation CHAutoCompleteTableView +-(id)initWithFrame:(NSRect)aRect +{ + if ((self = [super initWithFrame: aRect])) { + // Create our data source. + CHAutoCompleteDataSource* ds = [[[CHAutoCompleteDataSource alloc] init] autorelease]; + [self setDataSource: ds]; + + // Create the URL column. + NSTableColumn* urlColumn = [[[NSTableColumn alloc] initWithIdentifier:@"URL"] autorelease]; + [self addTableColumn: urlColumn]; + NSTableColumn* titleColumn = [[[NSTableColumn alloc] initWithIdentifier:@"Title"] autorelease]; + [self addTableColumn: titleColumn]; + } + return self; +} + -(void)controlTextDidChange:(NSNotification*)aNotification { - printf("Input changed.\n"); } -(void)controlTextDidEndEditing:(NSNotification*)aNotification diff --git a/chimera/src/browser/AutoCompleteDataSource.mm b/chimera/src/browser/AutoCompleteDataSource.mm index 03c8f7b8096..d77993f50e7 100644 --- a/chimera/src/browser/AutoCompleteDataSource.mm +++ b/chimera/src/browser/AutoCompleteDataSource.mm @@ -21,8 +21,19 @@ * David Hyatt (Original Author) */ +#import #import "CHAutoCompleteDataSource.h" @implementation CHAutoCompleteDataSource +-(int)numberOfRowsInTableView:(NSTableView*)aTableView +{ + return 0; +} + +-(id)tableView:(NSTableView*)aTableView objectValueForTableColumn:(NSTableColumn*)aTableColumn row:(int)aRowIndex +{ + return @""; +} + @end