Re: Programatically waking from sleep
Re: Programatically waking from sleep
- Subject: Re: Programatically waking from sleep
- From: Stephan Burlot <email@hidden>
- Date: Wed, 16 Apr 2003 22:53:57 +0200
You should download the Power Manager SDK:
http://developer.apple.com/sdk/index.html#PowerManager
Basically, as far as I remember, you can set how many seconds after
going to sleep the machine should wake up.
So, if you need to set an absolute time, you need to have a daemon
which will set the wakeup delay just before sleep.
The PM SDK contains some examples to get you started. It looks harder
than calling SetWUTime though.
HTH,
Stephan Burlot,
Coriolis Technologies
Custom Application Development
Email: email@hidden
http://www.coriolis.ch/
Le Mardi, 15 avr 2003, ` 06:31 Europe/Zurich, Martin-Luc GIrard a icrit
:
Hey all!
I know this question has been asked a few times before, but it hasn't
been answered yet.
How does one wake up programatically in Jaguar, w/cocoa?
In previous incarnations of OSX, I simply figured that feature wasn't
implemented, but in the light of iBeeZz (a cocoa app that wakes/starts
up your computer and executes scripts), I now know it is possible...
I looked through power.h and I'm thinking I have to use the
SetWUTime carbon call, which takes a 'long' as an input...
Am I correct in this assumption? Is there anything to do to get it to
work?
and what 'long' should I send it? the timeIntervalSinceReferenceDate
of the time I want it to wake up?
Thanks you so very much for your help :)
Cheers
ML
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.