• 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
programmatically sorting an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

programmatically sorting an NSTableView


  • Subject: programmatically sorting an NSTableView
  • From: James Walker <email@hidden>
  • Date: Tue, 12 Jul 2011 13:43:00 -0700

I have an NSTableView containing one column, which is bound to an NSArrayController. I've set a sort key and selector for the column in IB, and I've called setSortDescriptors: on the array controller. Clicking the column header sorts it, but how can I sort programmatically? It seems odd that I look through the methods of NSTableView, NSTableColumn, and NSArrayController, and there are methods for setting sort descriptors but nothing that says "sort it". I suppose that -[NSTableView setAutomaticallyRearrangesObjects:] might help, but it requires 10.5 and I need to support 10.4. Help?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: programmatically sorting an NSTableView
      • From: Peter <email@hidden>
    • Re: programmatically sorting an NSTableView
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Removing (foo) from a NSString
  • Next by Date: Re: programmatically sorting an NSTableView
  • Previous by thread: Re: Removing (foo) from a NSString
  • Next by thread: Re: programmatically sorting an NSTableView
  • Index(es):
    • Date
    • Thread