• 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: [Newbie] Quitting App automatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] Quitting App automatically


  • Subject: Re: [Newbie] Quitting App automatically
  • From: Andre Bonhote <email@hidden>
  • Date: Wed, 23 Jun 2004 12:02:42 +0200
  • Mail-followup-to: Cocoa Developers <email@hidden>

Hi again

On Wed, Jun 23, 2004 at 11:07:40AM +0200, Andre Bonhote wrote:
> I had a look at the NSApplication class, but I didn't find a way to call
> the terminate: method.

As always: right after asking, I found the answer myself:

[[NSApplication sharedApplication] terminate: self];

Works. Now I have to find out _why_ it works :) I found this snipped in
Platypus'[1] ScriptExecCocoa.m by Sveinbjorn Thordarson.

Thanks anyway. I'll pop up with other questions later for sure.

Cheers & HAND

Andri

[1] http://sveinbjorn.vefsyn.is/platypus

--
Hope is a waking dream.
-- Aristotle
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >[Newbie] Quitting App automatically (From: Andre Bonhote <email@hidden>)

  • Prev by Date: starting an app with execve()
  • Next by Date: PMPrintSettings and NSPrintInfo
  • Previous by thread: [Newbie] Quitting App automatically
  • Next by thread: (Command-)Option-Clicking a Window
  • Index(es):
    • Date
    • Thread