Re: Force a sleep
Re: Force a sleep
- Subject: Re: Force a sleep
- From: David Duncan <email@hidden>
- Date: Mon, 14 May 2007 10:53:18 -0700
On May 13, 2007, at 7:54 PM, Andrew James wrote:
For the life of me i can not find a single snippet of code to tell
a system
to goto sleep, im hoping that if my application which uses
CGCaptureDisplay() will be able to send the system to sleep.
Does anyone have any snippets of code to put the system to sleep?
it needs
to be carried out fully from inside my application as far as i can
understand due to the capture display function blocking the OS from
initiating a sleep.
Why do you want to do this? If you want the display to go to sleep
naturally, then don't capture it. Capturing a display essentially
tags it as only modifiable by your application. Putting a display to
sleep and then waking it up can cause modifications to the display
that would violate that contract.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden