• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TableView question? (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • general questions (another noob)
      • From: Aubrey <email@hidden>
References: 
 >TableView question? (newbie) (From: Rich <email@hidden>)

  • Prev by Date: TableView question? (newbie)
  • Next by Date: general questions (another noob)
  • Previous by thread: TableView question? (newbie)
  • Next by thread: general questions (another noob)
  • Index(es):
    • Date
    • Thread