• 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
Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa... (From: Sascha Matzke <email@hidden>)

  • Prev by Date: Re: Criminals among us?
  • Next by Date: Drawing in front of a NSMovieView
  • Previous by thread: Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
  • Next by thread: Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
  • Index(es):
    • Date
    • Thread