Re: 10.6 Snow Leopard API for blocking screensaver/idle?
Re: 10.6 Snow Leopard API for blocking screensaver/idle?
- Subject: Re: 10.6 Snow Leopard API for blocking screensaver/idle?
- From: Ron Fleckner <email@hidden>
- Date: Tue, 15 Feb 2011 09:41:57 +1100
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@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