• 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: Programmatically sort NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically sort NSTableView


  • Subject: Re: Programmatically sort NSTableView
  • From: Scott Stevenson <email@hidden>
  • Date: Mon, 6 Nov 2006 21:51:07 -0800


On Nov 6, 2006, at 8:12 PM, Trygve Inda wrote:

I have an NSTableView with 3 columns. When I click on a header, it sorts on
that column automatically (and reverse order if I click again). How can I do
this programmatically? (ie cause my table to initially appear with a column
already set)?

Use NSSortDescriptor. You can apply those to a table or NSArrayController.


   - Scott
_______________________________________________
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


References: 
 >Programmatically sort NSTableView (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Odd problem with NSOutlineView
  • Next by Date: Printing Confusion (Project Builder -> XCode changes)
  • Previous by thread: Programmatically sort NSTableView
  • Next by thread: Re: Programmatically sort NSTableView
  • Index(es):
    • Date
    • Thread