Another question about Disabling Energy Saving mode
Another question about Disabling Energy Saving mode
- Subject: Another question about Disabling Energy Saving mode
- From: Adil Saleem <email@hidden>
- Date: Sun, 27 Apr 2008 23:13:06 -0700 (PDT)
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 (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