Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applicationShouldTerminate delegate does not work in Leopard




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >applicationShouldTerminate delegate does not work in Leopard (From: "parag vibhute" <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: "Clint Shryock" <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: "parag vibhute" <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: Jens Miltner <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: "parag vibhute" <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: Jean-Daniel Dupas <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: Jens Miltner <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: Jean-Daniel Dupas <email@hidden>)
 >Re: applicationShouldTerminate delegate does not work in Leopard (From: "parag vibhute" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.