Binding a unique-selection checkbox in a table view?
Binding a unique-selection checkbox in a table view?
- Subject: Binding a unique-selection checkbox in a table view?
- From: Rick Mann <email@hidden>
- Date: Fri, 21 Nov 2014 16:09:30 -0800
In an OS X app I have an NSTableView that binds to an array of Job objects. I'd like to have a checkbox column that the user can check that indicates the "active" job. There should be only one of these. Is there a way to bind the value of that column to something other than the Job for that row, to handle this?
It's currently bound to a bool property on the Job object. Perhaps I could have a method invoked any time one of these changes? What's the recommended approach?
Thanks!
--
Rick Mann
email@hidden
_______________________________________________
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