Re: [SOLVED] bindings with two interdependent NSPopupButtons
Re: [SOLVED] bindings with two interdependent NSPopupButtons
- Subject: Re: [SOLVED] bindings with two interdependent NSPopupButtons
- From: Matt Neuburg <email@hidden>
- Date: Sat, 30 Jun 2007 08:42:52 -0700
- Thread-topic: [SOLVED] bindings with two interdependent NSPopupButtons
On Thu, 28 Jun 2007 04:47:38 -0400, "Justin R. Miller"
<email@hidden> said:
>For posterity, I figured this out. The trick is to not only bind the
>NSPopupButton's contentValues to the array controller's
>arrangedObjects, but also to bind the button's selectedIndex to the
>array controller's selectionIndex. The former populates the popup
>button and the latter tracks the actual selection.
>
>Most confusing, but makes sense looking back
Makes even more sense looking back at the archives, where this has been
stated and restated many times. For example:
<http://www.cocoabuilder.com/archive/message/cocoa/2006/5/31/164724>
Note to [your]self: Uuuuse the archiiiives, Luuuuuke!
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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