Re: TableView question? (newbie)
Re: TableView question? (newbie)
- Subject: Re: TableView question? (newbie)
- From: Scott Anguish <email@hidden>
- Date: Sat, 6 Sep 2003 00:40:50 -0400
You're attepting to call compareTitle: on an object that is an
NSDictionary, rather than (I'd guess) a ShelfItem
- (void)tableView:(NSTableView *)aTableView
didClickTableColumn:(NSTableColumn *)tableColumn
{
NSString * identifier = [tableColumn identifier];
if ([identifier isEqualToString:@"title"])
{
[items sortUsingSelector:@selector(compareTitle:)];
}//else {
// [items sortUsingSelector:@selector(compare ---:)];
//}
[tableView reloadData];
}
_______________________________________________
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.