Re: Modal window and app Quit
Re: Modal window and app Quit
- Subject: Re: Modal window and app Quit
- From: Jens Alfke <email@hidden>
- Date: Thu, 23 Aug 2012 11:34:05 -0700
On Aug 23, 2012, at 10:52 AM, tridiak <email@hidden> wrote:
> 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
That's correct behavior; modal windows are supposed to disable quit. They're generally considered bad UI for anything other than an urgent "I can't do anything else until you response to this!" type of alert, so consider changing your UI to avoid using one of these if you don't really need to. (If you want the user to be able to quit while it's up, that's a sign that you don't need it to be modal.)
> and the Quit menu item becomes permanently disabled after the modal window has been dismissed.
That's weird, and implies that you might be dismissing the panel incorrectly.
—Jens
_______________________________________________
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