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: Sun, 28 Jun 2020 12:03:52 +1000
You can make your app trigger a command-line program and pass params using
NSTask. It’s not difficult to use. But in this case you might want to negotiate
this with the user - apps that just go ahead and change MY system preferences
are being user-hostile to say the least.
—Graham
> On 28 Jun 2020, at 2:46 am, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> Basically, what I'd like to do in my app is what I can do using this on the
> command line:
>
> defaults -currentHost write com.apple.screensaver idleTime
_______________________________________________
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