• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa binding question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa binding question (From: Thomas Schnitzer <email@hidden>)

  • Prev by Date: Re: Dynamic linking of perl library in Panther vs. Tiger
  • Next by Date: Popup button & IB questions
  • Previous by thread: Cocoa binding question
  • Next by thread: refresh window's background/mask
  • Index(es):
    • Date
    • Thread