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: Tue, 9 May 2006 13:28:12 -0700
On May 9, 2006, at 12:13 PM, Nir Soffer wrote:
On 09/05/2006, at 21:56, John Stiles wrote:
I have a Cocoa app which, soon after applicationDidFinishLaunching
is called, creates a window and dims the Quit menu item via
[evil code trying to disable the quit menu]
But if I check the menu, it's not dimmed.
Why do you want to disable the quit menu?!
I guess you want to read this: http://developer.apple.com/
documentation/Cocoa/Conceptual/AppArchitecture/Tasks/
GracefulAppTermination.html
Because we're in the middle of an operation, and quitting would leave
files in an incomplete, corrupted state. There is a dialog up with a
cancel button; the user can click Cancel to stop the operation in a
graceful way.
Questioning my design isn't really an appropriate response here.
Please try to be helpful.
_______________________________________________
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