Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField
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