• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to force an initial column sort with NSTableView and controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to force an initial column sort with NSTableView and controller?
      • From: George Orthwein <email@hidden>
References: 
 >How to force an initial column sort with NSTableView and controller? (From: Alexander Lamb <email@hidden>)
 >Re: How to force an initial column sort with NSTableView and controller? (From: "I. Savant" <email@hidden>)
 >Re: How to force an initial column sort with NSTableView and controller? (From: Alexander Lamb <email@hidden>)
 >Re: How to force an initial column sort with NSTableView and controller? (From: George Orthwein <email@hidden>)

  • Prev by Date: Re: NSPopupButton and an array controller
  • Next by Date: Re: NSWindowController doesn't call init method
  • Previous by thread: Re: How to force an initial column sort with NSTableView and controller?
  • Next by thread: Re: How to force an initial column sort with NSTableView and controller?
  • Index(es):
    • Date
    • Thread