• 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: Enabling menu items...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling menu items...


  • Subject: Re: Enabling menu items...
  • From: Jim Majure <email@hidden>
  • Date: Fri, 18 Dec 2009 11:26:34 -0600

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 (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: 
 >Enabling menu items... (From: Jim Majure <email@hidden>)
 >Re: Enabling menu items... (From: Doug Knowles <email@hidden>)
 >Re: Enabling menu items... (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Detecting system protected folders.
  • Next by Date: Re: Core Video - Getting Started
  • Previous by thread: Re: Enabling menu items...
  • Next by thread: NSAttributedString fill with gradient
  • Index(es):
    • Date
    • Thread