So i tried one of the suggestions, which was to add a new menu item (as opposed to using the default one). When I did this, they BOTH started to work.

I can't explain what happened. Of course, I would swear that I was doing things right, but... It may have been pure user error, or IB might have a glitch.

Thanks for the responses!

Jim


On Dec 18, 2009, at 11:19 AM, Jens Alfke wrote:


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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to