• 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: NSTableView auto sorting does not work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView auto sorting does not work


  • Subject: Re: NSTableView auto sorting does not work
  • From: Chris Tracewell <email@hidden>
  • Date: Sat, 12 Feb 2011 08:24:59 -0800

> Did you actually bind the table view's sortDescriptors binding to the
> array controller's sortDescriptors property?
>

No, but that's why I posted, trying to figure out when this can be avoided.

> In the simplest case (all columns bound to different keys on the same
> NSArrayController), NSTableView will automagically bind its
> selectedIndexes and its sortDescriptors bindings to the relevant
> properties on the array controller. But if your columns aren't all
> bound to the same array controller, the table view can't logically do
> this, so you are responsible for binding these yourself.

This is helpful, thanks for explaining. I am however, using only one NSArrayController between all of the columns and am not using any display patterns (I noticed they do not offer the "Creates Sort Descriptor" option). At this point I could just move on and set my Array Controller's sortDescriptor property but it just really bugs me to not know what line I am crossing that disables the automagic functionality.


--Chris




_______________________________________________

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: 
 >NSTableView auto sorting does not work (From: Chris Tracewell <email@hidden>)
 >Re: NSTableView auto sorting does not work (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: subclass says "unrecognized selector"
  • Next by Date: Cocoa Application without any menu, dock, etc.
  • Previous by thread: Re: NSTableView auto sorting does not work
  • Next by thread: Re: NSTableView auto sorting does not work
  • Index(es):
    • Date
    • Thread