Re: validateMenuItem() not always being called
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