workspaceWillPowerOff error in Panther
workspaceWillPowerOff error in Panther
- Subject: workspaceWillPowerOff error in Panther
- From: "parag vibhute" <email@hidden>
- Date: Thu, 17 Jan 2008 21:48:13 +0530
Hi all,
I am implementing cocoa application in which I am hidding its dock icon
using info.plist.
I have implemented code for catching shutdown/restart/logout event using *
workspaceWillPowerOff* delegate & application quit event(quitting from
activity monitor) using *applicationShouldTerminate *delegate.
In Tiger, when I run that application; I am able to catch
shutdown/restart/logout & application quit seperately & as I want. But in
Panther, when I quit that application from activity monitor, both*
**applicationShouldTerminate
& **workspaceWillPowerOff *delegate methods gets called which is unexpected
because ideally only *applicationShouldTerminate *should only get &
not *workspaceWillPowerOff.
*I also tried signal handling but they did not work in Panther (but very
well in Leopard). So not useful.
Any solution to capture quit event for background cocoa application??
Thanks,
Palav
--
There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'.
_______________________________________________
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