Re: Can't invoke NSApplication's terminate
Re: Can't invoke NSApplication's terminate
- Subject: Re: Can't invoke NSApplication's terminate
- From: Nathan Greenstein <email@hidden>
- Date: Tue, 28 Dec 2010 07:14:45 -0800
I use
tell me to quit
Is Shane's method more proper?
--
Nathan Greenstein
email@hidden
On Mon, Dec 27, 2010 at 22:42, Dave
<email@hidden> wrote:
I've tried the following to cause my application to terminate. They don't do anything and no syslog messages are emitted. I've resorted to calling my own Obj-C method to invoke terminate.
tell current application to terminate_(me)
current application's terminate_(me)
current application's NSApplication's terminate_(me)
current application's sharedApplication()'s terminate_(me)
My Objective-C method, which does work, is:
+ (void)TerminateApplication
{
[NSApp terminate:nil];
}
-- Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden