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: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 14 Feb 2011 23:38:30 +0100
Le 14 févr. 2011 à 23:03, Eric Wing a écrit :
> Is there an API in Snow Leopard to suppress/block/prevent the
> screensaver from coming up?
The new API is supposed to be IOPMAssertionCreateWithName() with kIOPMAssertionTypeNoDisplaySleep, but AFAIK, it does not prevent screen saver (at least it wasn't the last time I try).
So, I think you're stuck with the UpdateSystemActivity(UsrActivity) function.
> (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
-- Jean-Daniel
_______________________________________________
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