Re: validateMenuItem: issues
Re: validateMenuItem: issues
- Subject: Re: validateMenuItem: issues
- From: Gideon King <email@hidden>
- Date: Thu, 23 May 2002 10:47:51 +0800
One reason you could be seeing different behaviour is if you are using a
different target - i.e. the one that works is being targeted directly to
an object, and the one that doesn't work is targeted at first responder,
and something further up the responder chain responds to that selector,
and therefore the validateMenuItem is not called on the object you
expect.
Gideon.
On Thursday, May 23, 2002, at 12:39 AM, Mark de Jong wrote:
A while back I posted a few messages on OmniGroup's cocoa development
list about problems I was having with "validateMenuItem:" not being
called consistently.
After poking around for a while, I wrote this:
===
Ok. One more piece of information. If my menu items are in a menu of my
own making (called "Tools"), then the menu items in that menu do make
it to my validateMenuItem:.
However, if I put my own menuitems in the "File" menu, then
"validMenuItem:" is NOT called with those items. What's so special
about the "File" menu?
Note that in either case, if I select the menu item, the correct target
is invoked.
-- Mark
===
Can anyone here shed some light on this?
Thanks!
-- Mark
_______________________________________________
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.
_______________________________________________
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.