Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Great stuff' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Great stuff
Authored by: weygold on Nov 22, '02 04:46:04PM

Check out: /Developer/Documentation/Carbon/utilities/PowerManager/Power_Manager/index.html

Power Manager allows your application or other software to

* install a procedure that is executed when
power to internal devices is about to be
shut off or when power has just been restored
* set a timer to wake up the computer at some
time in the future



[ Reply to This | # ]
How did they do this?
Authored by: keaka on Nov 23, '02 05:06:11PM

This is a great hint, and I've wanted to use this functionality when programming for a long time. However, the power management documentation at:
<http://developer.apple.com/techpubs/macosx/Carbon/utilities/PowerManager/Power_Manager/Power_Manager_Reference/>
has always said, and still says, that most desired functions 'do nothing' on Mac OS X. Specifically, the function SetWUTime to set the wake up timer says it will return an error on Mac OS X. Does anybody know what frameworks they actually used to implement this, and if so do you have any links to current documentation?

Thanks, Keaka



[ Reply to This | # ]