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: George Orthwein <email@hidden>
- Date: Thu, 22 Jun 2006 11:20:52 -0400
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