Re: [Newbie] Quitting App automatically
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.