Skip navigation.
 
mlRe: How to force an initial column sort with NSTableView and controller?
FROM : Ben Lachman
DATE : Thu Jun 22 20:28:14 2006

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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlHow to force an initial column sort with NSTableView and controller? Alexander Lamb Jun 22, 11:18
mlRe: How to force an initial column sort with NSTableView and controller? I. Savant Jun 22, 14:15
mlRe: How to force an initial column sort with NSTableView and controller? Alexander Lamb Jun 22, 15:53
mlRe: How to force an initial column sort with NSTableView and controller? George Orthwein Jun 22, 17:20
mlRe: How to force an initial column sort with NSTableView and controller? Ben Lachman Jun 22, 20:28
mlRe: How to force an initial column sort with NSTableView and controller? George Orthwein Jun 23, 00:11