Re: NSTableView Popup Column issue
Re: NSTableView Popup Column issue
- Subject: Re: NSTableView Popup Column issue
- From: Ken Thomases <email@hidden>
- Date: Sat, 7 Feb 2009 04:49:15 -0600
On Feb 6, 2009, at 9:47 AM, Jon C. Munson II wrote:
I'm having an issue with a popup in a tableview.
The Selected Object binding is configured thus:
Bind to: tblPattern_Yarn
Controller Key: arrangedObjects
Model Key path: relYarn
Everything else is the defaults that IB provides when that binding
is set
up.
tblPattern_Yarn is the intermediary table between tblPattern and
tblYarn.
tblPattern is the "master" table in this case.
relYarn is the relationship in tblPattern_Yarn that links the
Pattern to the
Yarn.
I don't think you want the Selected Object of the pop-up to refer to a
relationship.
What entity does the tblPattern_Yarn array controller use for its
elements? What property of that entity should be changed when the
user picks something from the pop-up? That's the property which
should be named by the Model Key Path of the Selected Object binding
of the pop-up. Since the pop-up is having the user make a singular
choice, I would expect that property to be an attribute or a to-one
relationship, not a to-many relationship.
Another important consideration is how the Content and possibly the
Content Objects binding of the pop-up is configured. If Content
Objects is configured, then an element from that is what will be used
to set the Selected Object. If Content Objects is not configured,
then the pop-up will just use the element from the Content-bound array
for the Selected Object. Are you sure those bindings are set up to
make sense.
Regards,
Ken
_______________________________________________
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