Can bindings be set to ignore certain values?
Can bindings be set to ignore certain values?
- Subject: Can bindings be set to ignore certain values?
- From: Dan Price <email@hidden>
- Date: Mon, 23 Jan 2006 20:39:00 +0000 (GMT)
Hey
I have a popup menu with a list of object types and my
program automatically selects the item appropriate to
the object selection. Each object class has a unique
#define number to identify it's type, and is matched
by the tag of the menu items (e.g a Sphere, ID 1000,
has a menu item with tag 1000). I've bound the
selection of the popup menu to the current selection
and it all works.
Except, some object-types don't have an associated
menu item. In fact, I want the menu to be disabled for
these types because the action is not relevant. But
with bindings, cocoa simply adds a new entry to the
menu, with ID number as the name which is not what I
want.
How can I change the bindings so that A) the menu
ignores a range of IDs and B) is disabled for those
values. I had this working in code originally, but I
really want to use bindings.
Thanks for the help.
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
_______________________________________________
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