Re: Programmatically sort NSTableView
Re: Programmatically sort NSTableView
- Subject: Re: Programmatically sort NSTableView
- From: Scott Stevenson <email@hidden>
- Date: Mon, 6 Nov 2006 21:51:07 -0800
On Nov 6, 2006, at 8:12 PM, Trygve Inda wrote:
I have an NSTableView with 3 columns. When I click on a header, it
sorts on
that column automatically (and reverse order if I click again). How
can I do
this programmatically? (ie cause my table to initially appear with
a column
already set)?
Use NSSortDescriptor. You can apply those to a table or
NSArrayController.
- Scott
_______________________________________________
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