Re: App termination for MAC reboot
Re: App termination for MAC reboot
- Subject: Re: App termination for MAC reboot
- From: Chaz McGarvey <email@hidden>
- Date: Mon, 7 Mar 2005 01:04:18 -0700
On Mar 7, 2005, at 12:50 AM, apr trainees wrote:
Hello
I have this application running and doing perfectly
fine.
The problem arises when I reboot the Mac. Before
reboot there is a message that My application has not
exited, and deny reboot till I manually exit the
application from the Dock.
Can I do something so that this manual termination can
be made automatic, so on reboot there isn't any need
to
exit the application.
Your app will automatically terminate unless you or the frameworks are
canceling the termination. AppKit does this if there are unsaved
documents open, etc. It's usually a good thing design-wise when AppKit
cancels the termination. The reboot will probably also be cancelled
eventually if the app can't be quite because it isn't handling events.
So basically, make sure your app is always receiving events, and I
wouldn't worry about when the frameworks pause or cancel the reboot (or
logout). If your code is canceling the restart, than the solution is
of course to remove that part of the code.
Chaz McGarvey
http://www.brokenzipper.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden