Re: The unquittable App
Re: The unquittable App
- Subject: Re: The unquittable App
- From: j o a r <email@hidden>
- Date: Sun, 2 Sep 2001 12:26:09 -0700
On Saturday, September 1, 2001, at 09:31 , Angela Brett wrote:
How can I make an application that doesn't quit. I can take "quit"
menu item, but there is still "quit" in the dock's menu. Is this even
possible?
I can't help you with how to do it, but it must be possible, because
the OS X port of Tux Racer that I have doesn't quit whether you use the
normal 'Quit' menu item or the dock one (although it can be
force-quit.) Obviously it's a bug in that case, but it shows that it
can be done, even if it's doing it in some awful way. Hmm, maybe I
shouldn't even send this because I'm sure someone else will soon tell
you exactly how to do it, but hey, what's one more email?
You can always have your application delegate answer "NSTerminateCancel"
to this delegate method:
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication
*)theApplication
You find information in the docs for NSApplication.
Side note... I've just been eating chocolate fish and I think that
would be a good mascot for Cocoa, what with being related to both aqua
and cocoa.
Agreed.
j o a r