Trapping user shutdown/logout/restart in Cocoa/Foundation tool
Trapping user shutdown/logout/restart in Cocoa/Foundation tool
- Subject: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
- From: "parag vibhute" <email@hidden>
- Date: Fri, 4 Jan 2008 20:08:47 +0530
Hi guys,
I want to trap user user shutdown/logout/restart. For that I am using
-(void)workspaceWillPowerOff:(NSNotification *)aNotification. But for this,
it is necessary to have dock icon of an application. I searched the google &
came to know that it is required to have dock icon to trap
shutdown/restart/shutdown. My code is c++ code, but for trapping
shudown/restart/logout only, I am wrapping that C++ code in cocoa. I have
two questions:
1. Is there any other way to trap shutdown/restart/logout without requiring
to have type of project as Cocoa (i.e. either through Foundation tool or
like that).
2. Is there any way to trap shutdown/restart/logout in cocoa application
without requiring to have dock icon of an application?
Please reply.
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