• 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: Deivy Petrescu <email@hidden>
  • Date: Tue, 11 Jan 2011 08:43:23 -0500

On Jan 10, 2011, at 20:57 , Shane Stanley wrote:

> I wonder if your problem is that you are calling it too early. Try it in
> applicationWillFinishLaunching_ rather than awakeFromNib.
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>

I can't!
It has to be called right at the get go because it checks wether or not the user has other softwares in his/hers computer.
It will not run without them.

However, it shows that

tell current application's NSApp to terminate_(me)

is the safest way to quit an app. It does it from anywhere.

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

References: 
 >Re: Can't invoke NSApplication's terminate (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: textShouldEndEditing or textDidEndEditing
  • Next by Date: Overridden NSObject class cannot get instance properties
  • Previous by thread: Re: Can't invoke NSApplication's terminate
  • Next by thread: Overridden NSObject class cannot get instance properties
  • Index(es):
    • Date
    • Thread