• 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: Issue sorting an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue sorting an NSTableView


  • Subject: Re: Issue sorting an NSTableView
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 24 Jul 2008 09:41:22 -0700


On Jul 24, 2008, at 8:48 AM, Timothy Reaves wrote:

The documentation for NSTableView setSortDescriptors: starts off with
"A table column is considered sortable if it has a sort descriptor
that specifies the sorting ". I find this a bit puzzling as this is
the documentation for NSTableView, not NSTableColumn.


What is the correct formulation of the array of sort descriptors when
calling this method? I can't seem to find an example.

TableView automatically sets the array for you. It sets it to the values of the -sortDescriptorPrototype set in the NSTableColumn (which you can set in IB, via the sort key stuff).


Each subsequent column clicked gets added to the array of sort descriptors to allow sub-sorting.

This help? If not, I can elaborate more.

corbin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Issue sorting an NSTableView (From: "Timothy Reaves" <email@hidden>)

  • Prev by Date: Issue sorting an NSTableView
  • Next by Date: Re: Folder has limited permissions.
  • Previous by thread: Issue sorting an NSTableView
  • Next by thread: Re: Issue sorting an NSTableView
  • Index(es):
    • Date
    • Thread