On May 8, 2008, at 8:56 PM, Johnny Lundy wrote:
Bindings:
1. My NSPopUpButton is bound with its Content, Content Objects, and Content Values to the NSArrayController's arrangedObjects.self.

2. The NSArrayController's Content is bound to Popup.popupArray through an instance of the class Popup in IB (see #3).

3. An NSObject "popup", instantiated from within IB, has its Class set to "Popup." Binding to that to get the array content works fine (popup.popupArray).

I can't figure out what to bind the NSPopUpButton's "selection" bindings to, to get the instance variable "selectedGame" to be set to whichever of the two items in the popup is selected by the user.

I haven't tested, but my understanding is that you bind the NSPopUpButton's selectedObject to popup.selectedGame. Since the Content Objects and Content Values are both bound to the same thing, you could bind selectedValue to popup.selectedGame, too.

Cheers,
Ken

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to