NSTableView: use sorting
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