Re: How to force an initial column sort with NSTableView and controller?
Re: How to force an initial column sort with NSTableView and controller?
- Subject: Re: How to force an initial column sort with NSTableView and controller?
- From: Ben Lachman <email@hidden>
- Date: Thu, 22 Jun 2006 14:28:14 -0400
This assumes you have a window controller and therefore using a
document based app? Do you know a way of doing this without a window
controller?
->Ben
--
The user's going to pick dancing pigs over security every time. —
Bruce Schneier
On Jun 22, 2006, at 11:20 AM, George Orthwein wrote:
Ah, it's actually setSortDescriptors you want. Set it in
windowControllerDidLoadNib:
NSSortDescriptor* sortDescriptor = [[[NSSortDescriptor alloc]
initWithKey: @"displayOrder" ascending: YES] autorelease];
[tableView setSortDescriptors:[NSArray
arrayWithObject:sortDescriptor]];
Hope that helps,
George
_______________________________________________
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
_______________________________________________
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