AddObect to NSTableView
AddObect to NSTableView
- Subject: AddObect to NSTableView
- From: Roberto Sobachi <email@hidden>
- Date: Thu, 5 Feb 2004 18:18:19 +0100
I've got a NSTableView that works, but I don't understand beacuse I can
pass any argument to increment columns of NSTableView like:
In listDataSource.m
- (id) tableView: (NSTableView *) tableView objectValueForTableColumn:
(NSTableColumn *) column row: (int) row
{
NSString * identifier = [column identifier];
if ([identifier isEqualToString:@"protagonist"])
return @"fdsf";
else if ([identifier isEqualToString:@"title"])
return @"fdsf";
else return @"Unknown Identifier!";
}
- (void) addComic: (NSObject *) comico //WHAT comico needs?
{
[comicsArray addObject:comico];
}
In comicsController.m
NSArray *comic;
comic = [[NSArray alloc] init];
listDataSource *comico = [comicsList dataSource];
[comico clean];
[comico addComic:comic]; //WHAT comic needs?
[comicsList reloadData];
Roberto Sobachi
developer
http://www.xidiar.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.