• 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
Re: validateMenuItem() not always being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: validateMenuItem() not always being called


  • Subject: Re: validateMenuItem() not always being called
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 18 May 2008 20:33:07 -0700


On 18 May '08, at 8:05 PM, email@hidden wrote:

I wasn't, but when I did, it still was only called for the File menu.


Any object's validateMenuItem method is only called for menu items that would message that object if they were invoked. That means:
* Menu items whose target directly points to that object
* Menu items whose target is "first responder", and your object is on the responder chain and implements the item's action method.


Maybe you should tell us which command(s) aren't being validated that you think should be?

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: validateMenuItem() not always being called (From: "Kyle Sluder" <email@hidden>)
 >Re: validateMenuItem() not always being called (From: email@hidden)

  • Prev by Date: Re: Cocoa bindings and reluctance to use NSPopupButon
  • Next by Date: Re: Is there an NSCollectionView selection change notification?
  • Previous by thread: Re: validateMenuItem() not always being called
  • Next by thread: Re: validateMenuItem() not always being called
  • Index(es):
    • Date
    • Thread