Sorting a view based TableView with bindings
Sorting a view based TableView with bindings
- Subject: Sorting a view based TableView with bindings
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 02 May 2013 14:31:29 +0700
I have a cell-based TableView which is filled via ArrayController using bindings.
Sorting just works.
Now I changed this to a view-based TableView and suddenly no more automatic sorting.
It has just one column which uses an NSTableCellView.
The Static Text has it's Value bound to Table Cell View objectValue.Name.
And I want the column to be sorted via localizedCaseInsensitiveCompare:.
I tried to set in “Table Column Attributes inspector”:
Sort Key = objectValue.Name or Name
Selector = localizedCaseInsensitiveCompare (with trailing : or not)
The values seems to be irrelevant; anything non-nil activates the up/down triangle. But nothing changes the order of the rows.
When I click on the header nothing happens (except the current selection is set to none and the small triangle on the right side alternate between up and down).
What am I missing? What documentation should I read?
Gerriet.
_______________________________________________
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