Re: bound popup cell not letting me set it's value
Re: bound popup cell not letting me set it's value
- Subject: Re: bound popup cell not letting me set it's value
- From: Quincey Morris <email@hidden>
- Date: Wed, 19 Aug 2009 15:09:19 -0700
On Aug 19, 2009, at 14:21, Christopher Campbell Jensen wrote:
Column 2 is set to be pop up cells and is bound to
MetaData.arrangedObjects.value
You've missed something, either in your problem description or in your
code. A popup cell is going to involve (at a minimum) 2 bindings: one
to specify the content of the menu, and one to specify which item in
the menu is selected.
You're going to have to be more accurate with your terminology. What's
the value for a dictionary name key? A name or an array of names? If
an array of names, where does the current name come from? If a name,
where does the array of names come from?
Bind the pop up cell's "content" binding to an array controller, or
its "contentValues" binding to an array. Bind the pop up cell's
"selectedValue" binding to a string representing the current name, or
bind its "selectedIndex" binding to a number that represents the index
of the current name.
You can't do it with just one binding.
_______________________________________________
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