Re: sorting on multiple columns of a table
Re: sorting on multiple columns of a table
- Subject: Re: sorting on multiple columns of a table
- From: "Geert B. Clemmensen" <email@hidden>
- Date: Sun, 27 Mar 2005 07:48:11 +0200
On 26. mar 2005, at 22.09, Michael Monner wrote:
The middle of the info panel (attributes pane) for NSTableColumn in
Interface Builder contains fields labelled "Sort Key" and "Sort
Selector" but I can't find any documentation that describes what goes
in these fields or how they are used. I suspect they may allow you to
sort on multiple columns, which is what I'm trying to find a way to
do.
Can any one explain these or tell me where I can find some
documentation on them?
Check out the documentation for NSSortDescriptor. An array of
NSSortDescriptor's can be used to do a multi-column sort (of another
array) via -sortUsingDescriptors:
Check also out the -sortDescriptors and -setSortDescriptors: methods in
NSTableView.
Regards,
Geert B. Clemmensen
www.frontbase.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden