Re: binding relationship to checkbox
Re: binding relationship to checkbox
- Subject: Re: binding relationship to checkbox
- From: Amy Gibbs <email@hidden>
- Date: Mon, 07 Mar 2011 08:58:43 +0000
Hi,
My application has a tab view as the main view (it might look dated
but I can take it straight from the library and it works)
In one tab I have a table view that holds the 'master' category list.
Here I can add/remove categories.
In another tab I have my products list. There is a tableview that
lists the products, and then various other items displaying other
related data, an image etc. In this tab I have got another tableview
that currently has a column for the category name and a checkbox
column. I want to list all the categories that exist in this
tableview, and select and deselect the checkboxes to create/break the
relationship(s) between the selected product and the categories.
Am I along the right lines?
Thanks
Amy
On 6 Mar 2011, at 7:49PM, Jerry Krinock wrote:
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
_______________________________________________
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