Re: Can't invoke NSApplication's terminate
Re: Can't invoke NSApplication's terminate
- Subject: Re: Can't invoke NSApplication's terminate
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 10 Jan 2011 20:24:54 -0500
I did not read this message until today.
Yesterday I thought I tried
tell me to quit
in my script and it did not work.
So reading these posts today I checked again assuming i did not do what i believed I did.
It turns out I did...
Using tell me to quit does not quit the application
-->2011-01-10 20:20:03.422 CrMS[15538:a0f] *** -[CrMSAppDelegate awakeFromNib]: «script» doesn’t understand the quit message. (error -1708)
However
tell current application's NSApp to terminate_(me)
does the job properly.
Can anyone post a bit where the quit line works?
Thanks.
On Dec 28, 2010, at 10:14 , Nathan Greenstein wrote:
> 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
Deivy Petrescu
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