Re: Quit menu item undimming itself?!
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