• 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: tableView:sortDescriptorsDidChange: question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >tableView:sortDescriptorsDidChange: question (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: tableView:sortDescriptorsDidChange: question
  • Next by Date: Re: tableView:sortDescriptorsDidChange: question
  • Previous by thread: Re: tableView:sortDescriptorsDidChange: question
  • Next by thread: Drag and drop help wanted.
  • Index(es):
    • Date
    • Thread