Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Binding-PullDown Button Issue



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.