• 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: use an NSPopup to change and NSArrayController's selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >use an NSPopup to change and NSArrayController's selection (From: "Kent A. Signorini" <email@hidden>)

  • Prev by Date: Re: TK Like Canvas view
  • Next by Date: Re: NSArrayController with Combo Boxes, etc.
  • Previous by thread: use an NSPopup to change and NSArrayController's selection
  • Next by thread: TK Like Canvas view
  • Index(es):
    • Date
    • Thread