Re: use an NSPopup to change and NSArrayController's selection
Re: use an NSPopup to change and NSArrayController's selection
- Subject: Re: use an NSPopup to change and NSArrayController's selection
- From: "Kent A. Signorini" <email@hidden>
- Date: Sun, 11 Jan 2004 12:48:19 -0700
Got it! I forgot to bind the selectedIndex of the NSPopupButton to the
selectionIndex of the NSArrayController.
Thanks,
Kent!
On Jan 11, 2004, at 9:54 AM, Kent A. Signorini wrote:
I have an NSPopup's contentValues bound to an NSArrayController's
arrangedObjects.objectnamevariable so that the popup lists all the
objects in the controller's content array (which is dynamic and set in
another place in the program). This works.
I have also bound another NSTextField on the page to a key from the
same arraycontroller so that whenever a different object is chosen in
the popup, this text field will display data for THAT selected object.
This doesn't work.
The problem is, I can't figure out how to get the popup to change the
NSArrayController's selection index.
Is this possible?
Is a table the ONLY type of control that changes the selection of an
array controller? I sure hope not.
Thanks,
Kent!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.