• 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: Sleep Notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sleep Notification?


  • Subject: Re: Sleep Notification?
  • From: Don Yacktman <email@hidden>
  • Date: Tue, 26 Aug 2003 19:24:26 -0600

On Tuesday, August 26, 2003, at 07:01 PM, Andreas Mayer wrote:
Am Mittwoch, 27.08.03 um 01:57 Uhr schrieb email@hidden:
Is there any notification that can notify an app that the computer is about to go to sleep?

Not yet. You will have to wait for Panther.

You _CAN_ do it in Jaguar, though. Check out the RegisterForSleep Cocoa example code provided with the OS X PM (Power Management) SDK. Go download the SDK, and you should be able to get it working on Jaguar (or even 10.1 for that matter) pretty quickly...you can get notification of (1) about to go to sleep, (2) just woke up, and (3) you can say yes/no to "can system go to sleep" so as to prevent sleep from happening. The third can be nice if you want to finish something that can't or shouldn't be interrupted.

--
Later,

Don Yacktman
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Sleep Notification?
      • From: John Timmer <email@hidden>
References: 
 >Re: Sleep Notification? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Sleep Notification?
  • Next by Date: Re: Sleep Notification?
  • Previous by thread: Re: Sleep Notification?
  • Next by thread: Re: Sleep Notification?
  • Index(es):
    • Date
    • Thread