• 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: John Stiles <email@hidden>
  • Date: Wed, 10 May 2006 08:18:24 -0700


Matt Neuburg wrote:
On or about 5/10/06 12:17 AM, thus spake "Nir Soffer" <email@hidden>:

Beeping when the user choose quit is evil

Then perhaps someone should file a bug, because that's how Cocoa behaves
when a sheet is showing at the time the user chooses quit. The worst problem
of all is what happens if the user tries to log out, or chooses Quit from
your app's Dock menu, when a sheet is showing in your app - namely, nothing.
Your app doesn't quit, the logout is blocked, and your app doesn't get an
event so it doesn't even know it's being evil. It took me a very long time
to figure out a way to hack around this (but I did finally solve it, in
NotLight 1.1). m.
My experience has been that the OS shows a dialog for you which says "Logout was canceled because YourApp is busy." or something along those lines.

As for the Dock menu, you're right, it is unintuitive. It's a shame that the OS doesn't query applicationShouldTerminate and automatically dim/hide the Quit item if it comes back with NO.

_______________________________________________
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: glenn andreas <email@hidden>
References: 
 >Re: Quit menu item undimming itself?! (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Why does NSImageView Mask the Drop Zone of a Subview
  • Next by Date: .xcdatamodel tool?
  • Previous by thread: Re: Quit menu item undimming itself?!
  • Next by thread: Re: Quit menu item undimming itself?!
  • Index(es):
    • Date
    • Thread