• 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
validateMenuItem isn't called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

validateMenuItem isn't called?


  • Subject: validateMenuItem isn't called?
  • From: Mark Dawson <email@hidden>
  • Date: Tue, 29 Mar 2005 17:46:13 -0800

I've added a new menu action (IB + code), but it isn't being called in my validateMenuItem. I have verified that if I select the menu item, my action gets called (so the connection IS connected up correctly).

My code looks like:
- (BOOL)validateMenuItem:(NSMenuItem *)item {
SEL action = [item action];
int i = 0;
if (action == @selector(editVertexAction))
i++;

The code won't break on the i++ (or on the actual code later on). I can verify that other selectors in validateMenuItem ARE called (such as if (action == @selector(cut:))…)

Can any give some thoughts about why this selector isn't being passed to validateMenuItem?

Thanks,

Mark
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: validateMenuItem isn't called?
      • From: Gwynne <email@hidden>
  • Prev by Date: Re: Moving Files From /private/tmp
  • Next by Date: Text shadow on textured window
  • Previous by thread: Re: Recommended Reading
  • Next by thread: Re: validateMenuItem isn't called?
  • Index(es):
    • Date
    • Thread