Re: Popup button cells in a table view
Re: Popup button cells in a table view
- Subject: Re: Popup button cells in a table view
- From: Jerry Krinock <email@hidden>
- Date: Wed, 28 Jul 2010 12:57:02 -0700
On 2010 Jul 27, at 18:53, Kiel Gillard wrote:
> My problem is this. When I run my app, the popup button menus contain the descriptions of the arranged objects in the popup array controller instead of respecting the content value binding I have specified.
>
> I am certain my model is key-value coding compliant for the content value binding's key path.
If it wasn't, you'd get nastygrams in the console and the window wouldn't load.
When I read your description, I'm not sure which array controller is which, although the problem you're reported suggests that you've bound something to the wrong one.
Bindings are too complicated to be fully documented, and even if such documentation could be written, you wouldn't understand it. They work for a practical subset of all the theoretical possibilities. The successful programmer, therefore, always starts by copying someone else's design. Here's one for you:
List: email@hidden
Date: 2010-02-18
Thread: NSTableView with PopUpButtonCell column with different content per row
Link: http://www.cocoabuilder.com/archive/cocoa/281663-nstableview-with-popupbuttoncell-column-with-different-content-per-row.html?q=popup+column+choices+krinock#281750
You may or may not need "different content per row", but the idea is the same. Note that I use only a single array controller. The content for the popup is provided directly from an array attribute._______________________________________________
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