Custom NSCell and Bindings
Custom NSCell and Bindings
- Subject: Custom NSCell and Bindings
- From: "Carter R. Harrison" <email@hidden>
- Date: Fri, 24 Jun 2011 09:33:38 -0400
It's a pretty typical situation. I've got my model objects stored in an NSSet. An NSArrayController that is bound to the NSSet. And then an NSTableView with one NSTableColumn bound to the arrangedObjects.name property of the NSArrayController. It works great. Now I've introduced a custom NSCell object into the NSTableView. The custom cell displays a title, a subtitle, and a status image - all of which I want to be able to bind to 3 separate properties of the model object. How do I do this? Right now with the 'value' binding bound to the arrangedObjects.name property, on the title of my custom cell updates when the model updates. If the subtitle or status update in the model object the cell does not update. Any help is greatly appreciated.
_______________________________________________
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