Re: Sort Descriptor problem in NSTableView
Re: Sort Descriptor problem in NSTableView
- Subject: Re: Sort Descriptor problem in NSTableView
- From: Graham Cox <email@hidden>
- Date: Tue, 12 Aug 2008 10:32:02 +1000
On 12 Aug 2008, at 12:26 am, Keary Suska wrote:
OTOH, implement a custom sort method, setting it as the method to
use in the
table column properties.
OK, that helps a little - I've made some progress in that I'm now
getting the sort change notification in my delegate and the arrow
appearing in my column header. And I can implement my custom sort
method as a category on NSString. But there's something I'm still not
getting.
I just want to sort a simple mutable array of strings. So what should
the key be? There is no property I want to sort on, the string itself
*is* the property. But if I leave the key field blank the table just
keeps accumulating broken sort descriptors so that's clearly not
right. I suspect I'm thinking too hard about this, but I'm just not
seeing it.
tia,
Graham
_______________________________________________
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