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

Quit menu item undimming itself?!


  • Subject: Quit menu item undimming itself?!
  • From: John Stiles <email@hidden>
  • Date: Tue, 9 May 2006 11:56:56 -0700

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
  • Follow-Ups:
    • Re: Quit menu item undimming itself?!
      • From: Nir Soffer <email@hidden>
    • Re: Quit menu item undimming itself?!
      • From: James Bucanek <email@hidden>
    • Re: Quit menu item undimming itself?!
      • From: Nick Zitzmann <email@hidden>
    • Re: Quit menu item undimming itself?!
      • From: Guy English <email@hidden>
    • Re: Quit menu item undimming itself?!
      • From: j o a r <email@hidden>
  • Prev by Date: Reordering a table view with Core Data
  • Next by Date: Re: Quit menu item undimming itself?!
  • Previous by thread: Re: Reordering a table view with Core Data
  • Next by thread: Re: Quit menu item undimming itself?!
  • Index(es):
    • Date
    • Thread