• 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: Cocoa Binding-PullDown Button Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Binding-PullDown Button Issue


  • Subject: Re: Cocoa Binding-PullDown Button Issue
  • From: Scott Stevenson <email@hidden>
  • Date: Sun, 31 Oct 2004 00:05:21 -0700


On Oct 30, 2004, at 11:34 PM, James Hillhouse wrote:

When I bind the PullDown Button, I select Value, binding to the controller (in this case OrbitController) with a "selection" Controller Key and "selectCentralBodyMuAsPlanetX" for the first choice and "selectCentralBodyMuAsPlanetY" for the second choice for the Model Key Path.

You probably want to be binding three separate things:

- content to popupArrayController.arrangedObjects;
- contentValues to popupArrayController.arrangedObjects.displayName;
- selectedObject to otherArrayController.selection.attribute

This is from:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

See the "Popup" section.

Here's the sample project:
http://homepage.mac.com/mmalc/CocoaExamples/ToDos.zip


- Scott


--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Cocoa Binding-PullDown Button Issue (From: James Hillhouse <email@hidden>)

  • Prev by Date: Re: +[NSBundle bundleWithPath:] avoiding the cache?
  • Next by Date: Disk Utility's NSTextView psuedo-column display
  • Previous by thread: Cocoa Binding-PullDown Button Issue
  • Next by thread: Disk Utility's NSTextView psuedo-column display
  • Index(es):
    • Date
    • Thread