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

Re: Sorting NSTableView


  • Subject: Re: Sorting NSTableView
  • From: Ryan Bates <email@hidden>
  • Date: Fri, 6 Feb 2004 16:27:13 -0800

On Feb 6, 2004, at 2:12 PM, Roberto Sobachi wrote:

What can I use to sort NSTableView?

In OS X 10.3, NSTableView can handle the sorting of data through NSSortDescriptors, but if you want to support 10.2 or lower then you must sort the data before providing it to the table view. This method varies with the type of data that you are trying to sort. Normally you would do this with an NSMutableArray sortUsingSelector: or sortUsingFunction:context: method.

Some related reading:
<http://www.macdevcenter.com/pub/a/mac/2001/08/10/cocoa.html?page=1>
<http://www.stone.com/The_Cocoa_Files/Takes_All_Sorts.html>
<http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/ Tasks/UsingTableDataSource.html>

Ryan Bates
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Sorting NSTableView (From: Roberto Sobachi <email@hidden>)

  • Prev by Date: Re: malloc in obj-c/cocoa
  • Next by Date: Re: malloc in obj-c/cocoa
  • Previous by thread: Sorting NSTableView
  • Next by thread: Using NSSearchField and remaining Jaguar compatible?
  • Index(es):
    • Date
    • Thread