Re: Sorting NSTableView
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.