Re: applicationShouldTerminate delegate does not work in Leopard
Re: applicationShouldTerminate delegate does not work in Leopard
- Subject: Re: applicationShouldTerminate delegate does not work in Leopard
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 17 Jan 2008 14:46:49 +0100
Le 17 janv. 08 à 14:15, parag vibhute a écrit :
Hi Jean,
I tried signal handling on Panther, Tiger & Leopard. But found that
on Panther & Tiger, it did not work & only worked on Leopard which
is strange. Is that the only solution?
Thanks,
palav
In pre-leopard versions, Activity Monitor was sending an AppleEvent to
all graphical applications (even "background only"). But the apple
event is handle only if the application call -[NSApp run] or if it
installs a custom event handler.
AFAR, Activity Monitor was not able to properly quit some background
application on Tiger and Panther, so (I'm maybe wrong) I think they
decide to change the "quit application" implementation to support a
wider range of applications, but at some cost.
IMHO, The simplest solution will be to add a SIGINT handler in
Leopard, and find a safe way to call -[NSApp terminate:nil] when this
handler is call.
_______________________________________________
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