• 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: [SOLVED] bindings with two interdependent NSPopupButtons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [SOLVED] bindings with two interdependent NSPopupButtons
      • From: "Justin R. Miller" <email@hidden>
  • Prev by Date: Re: Transform not quite right
  • Next by Date: Re: Saving a borderless window frame to user defaults
  • Previous by thread: Re: NSNumberFormatterSpellOutStyle and localization
  • Next by thread: Re: [SOLVED] bindings with two interdependent NSPopupButtons
  • Index(es):
    • Date
    • Thread