Re: Quitting all active applications
Re: Quitting all active applications
- Subject: Re: Quitting all active applications
- From: Michael Watson <email@hidden>
- Date: Thu, 28 Aug 2008 15:59:44 -0400
Even if this is the case, if you send a kill signal to a GUI Cocoa
application, that application's app delegate will not receive -
applicationWillTerminate:. If the application has any important
cleanup/shut down code to run, it won't happen.
I'd go with "don't kill GUI apps unless they're malfunctioning" here.
--
m-s
On 28 Aug, 2008, at 13:47, Randall Meadows wrote:
On Aug 28, 2008, at 11:39 AM, Martin Stoufer wrote:
Actually no, since the default kill signal is TERM, apps will be
allowed to prompt to save if necessary. This assumes the app is
handling that signal properly. We could send KILL or ABRT and that
would just end the processes w/o any save options.
Well, then there must be a lot of apps out there that don't handle
it properly. TextEdit, Pages, Word, Omnigraffle all failed to
prompt me to save dirty documents when I used killall on them.
Granted, that's a small data sample, but I'd be right (and rightly)
pissed at anyone that decided that all those other programs were
written wrong, and decided to use killall anyway.
On a Mac system, this is simply NOT the right way to do this.
_______________________________________________
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:
@bungie.org
This email sent to email@hidden
_______________________________________________
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