• 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: Set computer to sleep mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set computer to sleep mode


  • Subject: Re: Set computer to sleep mode
  • From: Seth Delackner <email@hidden>
  • Date: Tue, 26 Jul 2005 04:22:01 +0000
  • Mail-followup-to: email@hidden, email@hidden, email@hidden

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

  • Prev by Date: Re: NSPersistentDocument bug?
  • Next by Date: WebKit question
  • Previous by thread: Re: Set computer to sleep mode
  • Next by thread: Cocoa-Carbon Bridging
  • Index(es):
    • Date
    • Thread