• 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: Force a sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Force a sleep (From: "Andrew James" <email@hidden>)

  • Prev by Date: Re: Determining required physical space for a HTML segment
  • Next by Date: Re: Printing with exotic margins (a basic example)
  • Previous by thread: Force a sleep
  • Next by thread: entity referencing self in relationship attribute
  • Index(es):
    • Date
    • Thread