• 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: Quit menu item undimming itself?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quit menu item undimming itself?!


  • Subject: Re: Quit menu item undimming itself?!
  • From: Guy English <email@hidden>
  • Date: Tue, 09 May 2006 15:04:28 -0400

Hey John,

My guess: validateMenuItem: has been called and you've returned YES.

Is that annoying? Yes. Very much so. Happened to me two nights ago and I was ready to kill something. :)

Later,
Guy


On Tuesday, May 09, 2006, at 02:59PM, John Stiles <email@hidden> wrote:

>I have a Cocoa app which, soon after applicationDidFinishLaunching is
>called, creates a window and dims the Quit menu item via
>	[quitMenuItem setEnabled:NO];
>
>(It's bound in my nib, of course.) I can check it immediately
>afterwards and it's still dim:
>	[quitMenuItem setEnabled:NO];
>	ASSERT( ![quitMenuItem isEnabled] ); // OK!
>
>But if I check the menu, it's not dimmed.
>Sure enough, I put some code in our "main loop" to poll the state,
>and it is very quickly returning back to "enabled" state.
>I only have one other place in the code where I change the enable
>state back to true; I put a breakpoint there, and it's not firing.
>
>Who could be undimming my quit item?! Could Cocoa be doing this
>behind my back?
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Cocoa-dev mailing list      (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Quit menu item undimming itself?! (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Quit menu item undimming itself?!
  • Next by Date: Re: Quit menu item undimming itself?!
  • Previous by thread: Re: Quit menu item undimming itself?!
  • Next by thread: Re: Quit menu item undimming itself?!
  • Index(es):
    • Date
    • Thread