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

Can't invoke NSApplication's terminate


  • Subject: Can't invoke NSApplication's terminate
  • From: Dave <email@hidden>
  • Date: Tue, 28 Dec 2010 00:42:34 -0600

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

  • Follow-Ups:
    • Re: Can't invoke NSApplication's terminate
      • From: Nathan Greenstein <email@hidden>
    • Re: Can't invoke NSApplication's terminate
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: me and my do not refer to your script's class
  • Next by Date: Re: me and my do not refer to your script's class
  • Previous by thread: Re: me and my do not refer to your script's class
  • Next by thread: Re: Can't invoke NSApplication's terminate
  • Index(es):
    • Date
    • Thread