validateMenuItem: and the Responder Chain
validateMenuItem: and the Responder Chain
- Subject: validateMenuItem: and the Responder Chain
- From: Tom Birch <email@hidden>
- Date: Mon, 7 Feb 2005 23:17:39 +1100
When a menu item's target is first responder (ie nil) and different
classes in the responder chain each implement validateMenuItem:, eg a
subclass of NSDocument and NSApp's delegate, then how does it decide to
validate or not? Does it poll all objects in the chain that respond to
this method, and take the OR of the results? because it doesn't really
make sense for it to let one take precedence over another since the
common behaviour is to return NO unless the NSMenuItem is a specific
one and certain conditions are met.
so yeah, how does it work? This is purely for my interests, I'm not
writing an app that relies on this, but I'd still like to know
cheers,
Tom
_______________________________________________
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