• 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 problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

validateMenuItem problem


  • Subject: validateMenuItem problem
  • From: Neville Smythe <email@hidden>
  • Date: Tue, 7 May 2002 11:33:02 +1000

any ideas on the following? Maybe I'm missing something obvious...

I added two menu items, one "Release Notes" to the Help menu, and another "Add item" to the File menu. Both have target actions declared and implemented in myController (which is the delegate for every possible responder if that matters).

validateMenuItem is implemented in myController (and declared in myController.h just in case that matters!).

The menu action messages are received correctly for both my menu items. I get a validateMenuItem call for the "Release Notes" item, BUT never for anything else --- indeed I get validateMenuItem for "Release Notes" when the user pulls down ANY menu, not just the Help menu.

If I add a print: command to myController I don't get a validate call for it either. If I remove the target connection from "Release Notes" I get no validate messages at all.

Both my menu items are set up in the same way in the nib. What's wrong?

--
$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?$@%?

Neville Smythe email@hidden
School of Mathematical Sciences Tel: 61-2-6125-2709
Australian National University Fax: 61-2-6125-4984
Canberra ACT 0200 AUSTRALIA Mob: 0414517719
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: [very ot] mail.app 10.1.4 update
  • Next by Date: NSTextView (Java) sizeToFit not working
  • Previous by thread: Re: [very ot] mail.app 10.1.4 update
  • Next by thread: NSTextView (Java) sizeToFit not working
  • Index(es):
    • Date
    • Thread