• 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: Simulating app termination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulating app termination


  • Subject: Re: Simulating app termination
  • From: Michael Ash <email@hidden>
  • Date: Tue, 1 Jun 2010 15:26:29 -0400

On Tue, Jun 1, 2010 at 3:16 PM, John Joyce <email@hidden> wrote:
>
> On Jun 1, 2010, at 2:09 PM, has wrote:
>
>> lorenzo7620 wrote:
>>
>>> My question at this point is not about the dialog not displaying, not yet
>>> anyway, but how to tell my app to quit without actually restarting or
>>> shutting down the computer. Years ago under Classic, I would write an
>>> Applescript to do this, but it seems that you don't get even basic
>>> Applescript support for free anymore, so I have to add it.
>>
>> If your application runs off a Cocoa event loop, it ought to respond to a standard 'quit' event; all GUI processes should. If not, maybe there's something not quite right in your design?
>>
>> HTH
>>
>
> You could also terminate the application's process via Terminal by sending it various signals.
> You could easily wrap that in a script.

If your goal is to simulate shutdown/restart termination, this won't
work; the system does not send signals to your app to kill it during
those situations.

Shutdown/restart termination is exactly equivalent to an AppleScript which does:

tell application "YourApp" to quit

If your app doesn't support that, then it won't support
shutdown/restart termination either.

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Simulating app termination
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: Simulating app termination (From: has <email@hidden>)
 >Re: Simulating app termination (From: John Joyce <email@hidden>)

  • Prev by Date: Re: Re: Simulating app termination
  • Next by Date: Re: Simulating app termination
  • Previous by thread: Re: Re: Re: Simulating app termination
  • Next by thread: Re: Simulating app termination
  • Index(es):
    • Date
    • Thread