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

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


  • Follow-Ups:
    • Re: Modal window and app Quit
      • From: tridiak <email@hidden>
References: 
 >Modal window and app Quit (From: tridiak <email@hidden>)

  • Prev by Date: Re: DisplayReconfigurationCallBack with nil cgDisplayID
  • Next by Date: Re: Modal window and app Quit
  • Previous by thread: Modal window and app Quit
  • Next by thread: Re: Modal window and app Quit
  • Index(es):
    • Date
    • Thread