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

Cocoa Binding-PullDown Button Issue


  • Subject: Cocoa Binding-PullDown Button Issue
  • From: James Hillhouse <email@hidden>
  • Date: Sun, 31 Oct 2004 01:34:51 -0500

Hi folks,

Playing with Cocoa Bindings but having a bit of a problem. So, I've got a PullDown Button with two choices. I also have a Radio Button with two choices. The problem is that in the case of each, all elements are selected; that is, both elements in the PullDown Button and the Radio Button are selected. I will concentrate my question on dealing with the PullDown Button since I suspect its issues are similar to those of the Radio Button.

How I am Binding Them:
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. While "Allows Editing Multiple View Selection", "Raises for Non Applicable Keys", and "Validates Immediately" are unchecked, "Conditionally Sets Enabled" is enabled.

The Problem:
When the program runs, a new entry is created. The user is then asked to select the planet around which to orbit. When the PullDown Button is clicked on, both selections, "Planet X" and "Planet Y" are checked. The mu (gravitation parameter) that the program ends up using is the last choice. I've tried to override this by having a TextField to force a certain value for mu in, all to no avail.

So, any suggestions on what I'm doing wrong.

Note: Scott, your Bindings session and FOB were excellent. My difficulties have nothing to do with their thoroughness. Hope you're doing well.

Jim Hillhouse
email@hidden

_______________________________________________
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
  • Follow-Ups:
    • Re: Cocoa Binding-PullDown Button Issue
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: app won't run from non admin account
  • Next by Date: Re: Cocoa-dev Digest, Vol 1, Issue 210
  • Previous by thread: Re: app won't run from non admin account
  • Next by thread: Re: Cocoa Binding-PullDown Button Issue
  • Index(es):
    • Date
    • Thread