Re: send computer to sleep

2010-05-26 Thread Jean-Daniel Dupas
Le 26 mai 2010 à 23:01, Julian. a écrit : > what is the correct way to send the computer to sleep? i couldn't find > anything in the documentation, except appleevents... #include void SystemSleep() { io_connect_t port = IOPMFindPowerManagement(MACH_PORT_NULL); IOPMSleepSystem(port); IOS

Re: send computer to sleep

2010-05-26 Thread Jeff Kelley
If you need to make the computer sleep immediately, you can use the command "/usr/bin/pmset sleepnow". Jeff Kelley slaun...@umich.edu On May 26, 2010, at 5:01 PM, Julian. wrote: > what is the correct way to send the computer to sleep? i couldn't find > anything in the documentation, except app

send computer to sleep

2010-05-26 Thread Julian.
what is the correct way to send the computer to sleep? i couldn't find anything in the documentation, except appleevents... thanks, Julian.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t