sort an nstablecolumn to button cell state?
sort an nstablecolumn to button cell state?
- Subject: sort an nstablecolumn to button cell state?
- From: Michael Hanna <email@hidden>
- Date: Thu, 16 Sep 2010 16:09:15 -0400
I have an NSTableColumn in an NSTableView that has only an
NSButtonCell(checkbox). When the user clicks the table column header I'd
like it to sort the table items according to whether or not the checkbox is
selected. so the end result is that all checked items are grouped
together(and all unchecked are grouped together).
Any suggestions on how to do this? I'm aware of the the Sort Key field in
the Attributes inspector, but it's not obvious to me whether or not this
will help. I've also set the sort descriptors on the tableview's array
controller but selection state isn't a property but is derived from from
other information.
Michael
_______________________________________________
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