• 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
Modal window and app Quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modal window and app Quit


  • Subject: Modal window and app Quit
  • From: tridiak <email@hidden>
  • Date: Fri, 24 Aug 2012 05:52:17 +1200

I have a simple document app-wide modal window shown using [NSApp showModal:].
It works all fine and dandy.
Problem is, if Cmd-Q is initiated, it does a highlight of the Application menu, makes a beep and the Quit menu item becomes permanently disabled after the modal window has been dismissed.

[window setPreventsApplicationTerminationWhenModal:NO] (or YES) doesn't help.

Created a simple message to close ([NSApp stopModal]; [window close];) the window from - applicationShouldTerminate:. That doesn't help. The quit menu remains dimmed (and application doesn't quit).

OS 10.7.4 (SDK 10.6. Target 10.6).

TIA
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Modal window and app Quit
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Sandboxing die.die.die
  • Next by Date: Re: Sandboxing die.die.die
  • Previous by thread: Re: DisplayReconfigurationCallBack with nil cgDisplayID
  • Next by thread: Re: Modal window and app Quit
  • Index(es):
    • Date
    • Thread