• 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: Can't invoke NSApplication's terminate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can't invoke NSApplication's terminate
      • From: Dave <email@hidden>
References: 
 >Can't invoke NSApplication's terminate (From: Dave <email@hidden>)

  • Prev by Date: Re: me and my do not refer to your script's class
  • Next by Date: Re: Can't invoke NSApplication's terminate
  • Previous by thread: Re: Can't invoke NSApplication's terminate
  • Next by thread: Re: Can't invoke NSApplication's terminate
  • Index(es):
    • Date
    • Thread