Hi,

My application requires that the system does not go to
sleep mode. That can be achieved by calling
UpdateSystemActivity() from an NSTimer. That prevents
the system from going to sleep when my application is
running. 

However, if user manually put computer to sleep from
Apple Menu->Sleep, then there is no way to stop system
 from going into sleep mode. Is there some kind of
delegate method to disable sleeping of system ?

I know we can receive NSWorkspaceWillSleepNotification
but that is just a notification, it does not stop
system from going to sleep. For my application it is
critical that the system does not go into sleep mode
in the first place. 

Thank you

ADIL


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to