Re: The unquittable App
Re: The unquittable App
- Subject: Re: The unquittable App
- From: Rosyna <email@hidden>
- Date: Sun, 2 Sep 2001 00:28:34 -0700
in awakeFromNib of the main class, use this to set the class as the delegate:
[NSApp setDelegate:self];
then later in the class, do this:
-
(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication
*)sender
{
return NSTerminateCancel;
}
this should work.
Ack, at 9/1/01, email@hidden said:
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?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People