validateMenuItem problem
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.