Skip navigation.
 
mlRe: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
FROM : Sascha Matzke
DATE : Wed Jan 22 16:29:27 2003

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).


Sascha
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlProblem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... Stéphane Sudre Jan 22, 14:58
mlRe: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... Clark S. Cox III Jan 22, 15:24
mlRe: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... Stéphane Sudre Jan 22, 15:54
mlRe: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... Sascha Matzke Jan 22, 16:29
mlRe: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... Stéphane Sudre Jan 22, 17:51
mlRe: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... Hannes Friederich Jan 22, 20:56