Re: tableView:sortDescriptorsDidChange: question
Re: tableView:sortDescriptorsDidChange: question
- Subject: Re: tableView:sortDescriptorsDidChange: question
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 24 May 2004 00:51:26 -0700
On May 23, 2004, at 1:17 PM, Bill Cheeseman wrote:
I finally figured out how to use sort descriptors.
But I have one remaining question: why does the
-tableView:sortDescriptorsDidChange: protocol method send me the
oldDescriptors in the second parameter? I'm wondering what they're
good for.
You can get the current sort descriptors from the table view. You
might not have a record of what the old ones were. Knowing both old
and new may allow you to be more efficient when you re-sort --
trivially, for example, if the new array is the same as the old one
minus the final entry (e.g. {lastName} and {lastName, firstName}.
mmalc
_______________________________________________
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.