• 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
NSTableView sorting using NSSortDescriptor's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView sorting using NSSortDescriptor's


  • Subject: NSTableView sorting using NSSortDescriptor's
  • From: Gabriele de Simone <email@hidden>
  • Date: Fri, 16 Jan 2004 14:49:27 -0500

Would anyone be so kind to let me know if there are any examples out there on how to implement automatic sorting in NSTableView via the new NSSortDescriptor class?

I *did* find the new Apple documentation on NSSortDescriptors, a few one sentence descriptions of what that means for NSTableView, and only one other post that was too hard to understand for a newbie. For instance, what should one select for the "Sort Key" in IB? How is that Sort Key used, and by who? What code must be added where to take care of the sorting?

NSSortDescriptor's class documentation gives a (pretty lame) example of using NSSortDescriptor to sort an array of dictionaries: how does that translate to a NSTableView's dataSource?

On a side note, is it necessary to use the "Bindings" palette in IB to modify parameters for the table view, and where can one find the layman's explanation of what that "Bindings" panel should be used for?

Thanks
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTableView sorting using NSSortDescriptor's
      • From: "John A. Debay" <email@hidden>
  • Prev by Date: Re: sketch sample code
  • Next by Date: Re: NSBorderlessWindowMask shadows
  • Previous by thread: Re: sketch sample code
  • Next by thread: Re: NSTableView sorting using NSSortDescriptor's
  • Index(es):
    • Date
    • Thread