Skip navigation.
 
mlRe: Cocoa binding question
FROM : Scott Stevenson
DATE : Sun Apr 24 23:26:39 2005

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]

Related mailsAuthorDate
mlCocoa binding question Thomas Schnitzer Apr 23, 17:03
mlRe: Cocoa binding question Scott Stevenson Apr 24, 23:26