• 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
validateMenuItem: and the Responder Chain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: validateMenuItem: and the Responder Chain
      • From: Seth Willits <email@hidden>
  • Prev by Date: Java NSViews Using Clear Colors
  • Next by Date: Re: Java NSViews Using Clear Colors
  • Previous by thread: Re: Java NSViews Using Clear Colors
  • Next by thread: Re: validateMenuItem: and the Responder Chain
  • Index(es):
    • Date
    • Thread