• 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
Sorting a view based TableView with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sorting a view based TableView with bindings
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: View Based TableView - how to use bindings?
  • Next by Date: Re: Sorting a view based TableView with bindings
  • Previous by thread: Re: Double tap inside a UICollectionViewCell
  • Next by thread: Re: Sorting a view based TableView with bindings
  • Index(es):
    • Date
    • Thread