Re: Set computer to sleep mode
Re: Set computer to sleep mode
Here's the C source to the command-line tool I made that I use in my alarm clock app. Feel free to use it:
http://lenin.net/~seth/sleepytime.m
I and Tim Kukulski jointly wrote it with massive hinting from the apple example source code.
The code is really obscure, so I recommend not trying to actually understand it.
> Does anyone know how to code an event which will put the computer to sleep at a particular time?
> Right now I am using the Apple Power Management DDK to detect sleep/wake events and I have code to wake the computer at a set time - but I am lost on how to put the computer to sleep.
> Any help/ideas would be great.
(replies please remove the -cocoa in my addr).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden