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