Re: Prevent screen saver from starting, but don't prevent computer sleep
Re: Prevent screen saver from starting, but don't prevent computer sleep
- Subject: Re: Prevent screen saver from starting, but don't prevent computer sleep
- From: Graham Cox via Cocoa-dev <email@hidden>
- Date: Mon, 29 Jun 2020 17:18:00 +1000
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 <email@hidden> 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 (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