On 15/02/2011, at 9:03 AM, Eric Wing wrote:

> Is there an API in Snow Leopard to suppress/block/prevent the
> screensaver from coming up? (I work with a lot of games/multimedia
> where I don't want the screen to go to screensaver and the input
> devices in use may not reset the idle counter.) For some reason I
> thought there might have been a new API for this, but I can't find it.
> 
> Thanks,
> Eric
> -- 

Hi Eric,

I believe what you need is explained 
here:<http://developer.apple.com/library/mac/#qa/qa2004/qa1160.html>

The short answer: call UpdateSystemActivity(OverallAct); every 30 seconds with 
a timer.

Ron



_______________________________________________

Cocoa-dev mailing list ([email protected])

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