Re: NSTableView auto sorting does not work
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