Mailing Lists: Apple Mailing Lists

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

workspaceWillPowerOff error in Panther



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

This email sent to 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.