Re: Sleep Notification?
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.