• 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: Binding a NSArrayController to a NSPopupButtonn & NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField


  • Subject: Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField
  • From: Keary Suska <email@hidden>
  • Date: Sun, 17 Feb 2013 09:54:47 -0700

On Feb 17, 2013, at 8:24 AM, John Joyce wrote:

> In the Bindings Inspector, click on Selected Index .
> For Bind to, select Array Controller from the Bind to PopUpButton menu.
> For the field Controler Key , enter selectionIndex.
> This will update the Array Controller's property selectionIndex to the index of the object selected in the NSPopUpButton.

This is really the key here--what I forgot is that NSTableView automatically binds selectedIndex behind the scenes, which is why selection semantics just seem to "work." For others, selectionIndex wants to be explicitly bound.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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

References: 
 >Binding a NSArrayController to a NSPopupButtonn & NSTextField (From: Eric Gorr <email@hidden>)
 >Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField (From: Keary Suska <email@hidden>)
 >Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField (From: John Joyce <email@hidden>)

  • Prev by Date: Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField
  • Next by Date: Re: what does the return value for textFieldShouldReturn actually do???
  • Previous by thread: Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField
  • Next by thread: Custom control with 4 vertical sliders
  • Index(es):
    • Date
    • Thread