• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: applicationShouldTerminate delegate does not work in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Trouble with NSCollectionView
  • Next by Date: Re: NSLog broken after call of NSTask and setStandardError
  • Previous by thread: Re: applicationShouldTerminate delegate does not work in Leopard
  • Next by thread: Re: applicationShouldTerminate delegate does not work in Leopard
  • Index(es):
    • Date
    • Thread