Re: binding relationship to checkbox
Re: binding relationship to checkbox
- Subject: Re: binding relationship to checkbox
- From: Jerry Krinock <email@hidden>
- Date: Sun, 06 Mar 2011 11:49:42 -0800
On 2011 Mar 05, at 08:20, Amy Heavey wrote:
> This sounds to me like something that should be doable with the 'magic' of bindings
Well, bindings should certainly be involved, but there is more to it than that. The most important is the view that will display your "checkbox column". Assuming that the user can add and delete 'categories', this view will need to grow or shrink and/or scroll with the number of objects it contains, and it would be nice to avoid writing that code. I would study these options:
(a) an NSTableView in source list style.
(b) an NSCollectionView
(c) Last resort, a custom view that you code yourself, containing an array of checkboxes
Then, the 'categories' in your data model should interface to this view via an array controller, and that's where you'll use bindings.
_______________________________________________
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