Then look at some of the other options in that API, e.g. 
IOPMAssertionDeclareUserActivity

AFACS, this is the supported way to do the kinds of things you want, of it can 
be done at all.


> On 29 Jun 2020, at 4:51 pm, Gabriel Zachmann <z...@cs.uni-bremen.de> wrote:
> 
>> 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
> 
> Would that also prevent the compute from going to sleep?
> 
> Also, I do not want to prevent the display from going to sleep.
> I want to prevent the screen saver to kick in.
> 
> Best regards, Gabriel
> 
> 

_______________________________________________

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

Reply via email to