Re: Simulating app termination
Re: Simulating app termination
- Subject: Re: Simulating app termination
- From: has <email@hidden>
- Date: Tue, 1 Jun 2010 20:09:43 +0100
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
has
--
Learn AppleScript, 3rd edition, Sanderson & Rosenthal:
http://apress.com/book/view/9781430223610
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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