• 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
NSTableView: use sorting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: use sorting


  • Subject: NSTableView: use sorting
  • From: "Simone Molendini" <email@hidden>
  • Date: Mon, 27 Nov 2006 13:43:25 +0100

I've read several documents on this topic (also from archives of this
list), but I havent solved the following problem still.

I have a NSTableView with several columns, one of them, on the IB, I wrote:
Identifier: Title
Sort Key: Title
Sort Selector: compare:
Sort Order: Ascending

Contentent of this column's NSCell is a NSTextField, and "Title" is
the key of each row's NSMutableDictionary.

Everything is ok but... the fact that that column is not sorted (but
the fact that I see "up" and "down" rows at its header).

In the docs I know that I should write something at the:
- (void)tableView:(NSTableView *)aTableView
sortDescriptorsDidChange:(NSArray *)oldDescriptors

but I have problems with associating the "compare:" selector in this method.

Could someone help me?

Thanks,
Demon
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView: use sorting
      • From: Hank Heijink <email@hidden>
  • Prev by Date: Re: Connecting to SQLITE
  • Next by Date: Re: Connecting to SQLITE
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: NSTableView: use sorting
  • Index(es):
    • Date
    • Thread