Re: Cocoa binding question
Re: Cocoa binding question
- Subject: Re: Cocoa binding question
- From: Scott Stevenson <email@hidden>
- Date: Sun, 24 Apr 2005 14:26:39 -0700
On Apr 23, 2005, at 8:03 AM, Thomas Schnitzer wrote:
If I bind a popup button to the NSArrayController instance containing
the event object the menu gets populated with the right values, but if
the user chooses an entry of the popup menu, the selection of the
array controller, to which the popup button is bound to, doesn't
change accordingly.
Bind the "selectedIndex" key of the dropdown to the Event controller's
"selectionIndex".
Then, bind the Participants controller's contentArray to:
Controller: Events
Controller Key: selection
Model Key Path: participants
I just tried this on your project and it works.
The separation between selectedIndexes and selectObjects is actually
fairly confusing, so don't feel bad for missing this.
- Scott
--
http://treehouseideas.com/
http://theocacao.com/ [blog]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden