• 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: The unquittable App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >The unquittable App (From: email@hidden)

  • Prev by Date: Re: The unquittable App
  • Next by Date: Writing a file type
  • Previous by thread: Re: The unquittable App
  • Next by thread: Writing a file type
  • Index(es):
    • Date
    • Thread