Re: Enabling menu items...
Re: Enabling menu items...
- Subject: Re: Enabling menu items...
- From: Jens Alfke <email@hidden>
- Date: Fri, 18 Dec 2009 09:19:42 -0800
On Dec 18, 2009, at 7:52 AM, Doug Knowles wrote:
> It's been my experience that validateUserInterfaceItem: is only called for
> toolbar items; there may be other cases, but I haven't run across them, and
> I've never seen it called on menu items.
No, that's not true; it's called for menu items as well. It exists so that you don't have to have two separate methods for menu and toolbar items.
Jim, are you certain that your validate method isn't being called for the Delete menu item? Have you set a breakpoint or added logging to check?
—Jens_______________________________________________
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