• 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 NSTableView on two keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting NSTableView on two keys


  • Subject: Re: Sorting NSTableView on two keys
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 11 Nov 2005 16:09:39 -0800


So can I still guarantee that when the user clicks the column header, the
sorting stays accurate on the other columns?

It depends on how you have things setup, but in general, yes. The sort descriptors just pile up to allow sub-sorting. Unfortunately, there is no UI to indicate this on tableview.



I guess there are two levels of sorting going on here - one at the TableView
and one at the ArrayController levels??

Well, the tableview just uses the sort descriptors.


Trygve

PS: If Apple is listening, an example of multi-key/column sorting would be
nice!

What exactly do you need to know how to do? it is really easy to provide an array of sort descriptors; it almost doesn't seem worth writing a one-line example for that! I must be not understanding exactly what you need to know...elaborate and I'll see what i can do :)


-corbin
_______________________________________________
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: 
 >Re: Sorting NSTableView on two keys (From: Trygve Inda <email@hidden>)

  • Prev by Date: NSTableView and dragging cursor
  • Next by Date: Re: NSTableView and dragging cursor
  • Previous by thread: Re: Sorting NSTableView on two keys
  • Next by thread: Re: Sorting NSTableView on two keys
  • Index(es):
    • Date
    • Thread