Sorting NSTableView using Bindings
Sorting NSTableView using Bindings
- Subject: Sorting NSTableView using Bindings
- From: Paul Johnson <email@hidden>
- Date: Mon, 05 Nov 2012 12:03:02 -0600
I have an NSTableView in a drawer. I'm using Core Data and I'm trying
to have the drawer opening and showing the table rows sorted by the
first column.. but have been unsuccessful.
I can sort the table by clicking on column headers, but when the
drawer is opened the data is unsorted.
Obviously I don't have the bindings set properly but I've tied many
things all to no avail.
I've selected the Table View and clicked on tab to select the Bindings
inspector. Under the Table Content heading I found Sort Descriptors,
and it is there that I'm focusing. (For example, I've checked the
"Bind to" box and selected the Array Controller responsible for
managing the table data. Then for Controller Key I have
"arrangedObjects" and for "Model Key Path" I have the key associated
with the first column. This isn't doing what I want; I get a
"doesNotRecognizeSelector" exception thrown.)
Can someone give me some advice?
_______________________________________________
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