Re: UpdateSystemActivity(OverallAct) to prevent sleep in Lion...
Re: UpdateSystemActivity(OverallAct) to prevent sleep in Lion...
- Subject: Re: UpdateSystemActivity(OverallAct) to prevent sleep in Lion...
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 30 Aug 2011 09:51:04 +0200
Le 29 août 2011 à 22:29, R a écrit :
> I'm using UpdateSystemActivity(OverallAct) successfully to prevent
> sleep in Snow Leopard. Can anyone confirm that this works with Lion?
>
> thanks
Probably, but you should use the IOPMAssertion API introduced in 10.5 instead.
See IOPMAssertionCreateWithName reference for details.
Note: On 10.5, this API does not prevent the screen saver to start, so if you need to support this feature on Leopard, you may have to continue to use UpdateSystemActivity on this OS version.
-- 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