On 2 May 2013, at 14:49, Quincey Morris <quinceymor...@rivergatesoftware.com> wrote:
> On May 2, 2013, at 00:31 , "Gerriet M. Denkmann" <gerr...@mdenkmann.de> wrote: > >> 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). > > At a wild guess, I'd suspect you neglected to bind the table's Sort > Descriptors binding to the array controller's "sortDescriptors" property. > This probably happens automatically for a cell-based table view, but perhaps > (like the Content binding) needs to be done explicitly for a view-based table > view. You are correct. I added this binding. And I also set the TableColumn to: Sort Key = Name Selector = localizedCaseInsensitiveCompare: Both seem to be necessary. > >> What am I missing? > > Possibly that using bindings with a view-based table view is more trouble > than it's worth? (I don't mean bindings to the cell view's objectValue. > That's worth doing.) But I digress… My experience with TableViews is: I usually start with bindings, but when things start getting a bit more complicated (they usually do) I switch back to DataSource. Slightly more code, much less head-ache. But this project is just about learning. Thanks for your help! Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com