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 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