NSTableView, NSArrayController and secondary sortings
NSTableView, NSArrayController and secondary sortings
- Subject: NSTableView, NSArrayController and secondary sortings
- From: Adhamh Findlay <email@hidden>
- Date: Sat, 8 Dec 2007 10:00:11 -0600
Hello,
I have an NSTableView that is bound to an NSArrayController. There
are 5 columns in the table view, one of which is an NSDate. What I
would like to do is always have the secondary sort be the date
column. The default behavior seems to be that the secondary sort is
based on the previously selected column.
I have setup sort keys on all the columns in IB and tired various
things with setSortDescriptors: on NSTableView and NSArrayController,
but I'm not having any luck. It seems like what I really need it
sortDescriptorsDidChange: from the NSTableDataSource protocol, but
since I'm using bindings that's not available.
Does anyone have suggestions on how to do programmatically set the
secondary sort descriptor in this situation?
Thanks,
Adhamh
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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