> > On Jun 29, 2020, at 10:53, Graham Cox via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > In the “old days”, your app could periodically call UpdateSystemActivity( > UsrActivity ) to prevent the screensaver kicking in. This has been deprecated > since 10.8, but the header for that function says it can be replaced by > IOPMAssertionCreateWithName(). I haven’t looked at that in detail or used it > myself, but one of the defines for that function is > ‘kIOPMAssertionTypePreventUserIdleDisplaySleep’, which appears to do the same > thing as the old UpdateSystemActivity() call. > > Apologies if you already discussed this and rejected it for some reason, but > otherwise, it may be worth checking out. > > —Graham
I think those assertions are called in caffeinate source ;) _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com