Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
- Subject: Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 22 Jan 2003 17:51:56 +0100
On Wednesday, January 22, 2003, at 04:29 PM, Sascha Matzke wrote:
Hi,
I had the same problem as you. I solved it by implementing the method
- (BOOL)worksWhenModal
{
return YES;
}
in the target object of the NSMenuItem(s).
As far as I know that specific behavior isn't documented (at least I
didn't find it). I discovered it by logging all respondsToSelector
calls
on my menu controller (the target object).
Yes, it works!
This is crazy. The documentation or NSPanel is speaking of
worksWithModal but it really has no link to this problem.
Thanks.
_______________________________________________
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.