Skip navigation.
 
mlRe: How to force an initial column sort with NSTableView and controller?
FROM : George Orthwein
DATE : Thu Jun 22 17:20:52 2006

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

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