• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically waking from sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Programatically waking from sleep (From: Martin-Luc GIrard <email@hidden>)

  • Prev by Date: Re: NSTextView - read line by line?
  • Next by Date: Re: NSTextView - read line by line?
  • Previous by thread: Programatically waking from sleep
  • Next by thread: Re: Programatically waking from sleep
  • Index(es):
    • Date
    • Thread