FROM : parag vibhute
DATE : Fri Jan 04 15:38:47 2008
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'.
DATE : Fri Jan 04 15:38:47 2008
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 mail archive

