• 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 on multiple columns of a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sorting on multiple columns of a table


  • Subject: Re: sorting on multiple columns of a table
  • From: "Geert B. Clemmensen" <email@hidden>
  • Date: Sun, 27 Mar 2005 07:48:11 +0200

On 26. mar 2005, at 22.09, Michael Monner wrote:

The middle of the info panel (attributes pane) for NSTableColumn in Interface Builder contains fields labelled "Sort Key" and "Sort Selector" but I can't find any documentation that describes what goes in these fields or how they are used. I suspect they may allow you to sort on multiple columns, which is what I'm trying to find a way to do.

Can any one explain these or tell me where I can find some documentation on them?

Check out the documentation for NSSortDescriptor. An array of NSSortDescriptor's can be used to do a multi-column sort (of another array) via -sortUsingDescriptors:


Check also out the -sortDescriptors and -setSortDescriptors: methods in NSTableView.

Regards,
Geert B. Clemmensen
www.frontbase.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >sorting on multiple columns of a table (From: Michael Monner <email@hidden>)

  • Prev by Date: Re: Odd parse error when I try to build
  • Next by Date: I can pass through without typing correct username and password(the user is admin group, and set the password to null)
  • Previous by thread: sorting on multiple columns of a table
  • Next by thread: Re: sorting on multiple columns of a table
  • Index(es):
    • Date
    • Thread