Re: slow NSWorkspaceDidWakeNotification
Re: slow NSWorkspaceDidWakeNotification
- Subject: Re: slow NSWorkspaceDidWakeNotification
- From: Shaun Wexler <email@hidden>
- Date: Wed, 16 Mar 2005 19:02:24 -0800
On Mar 16, 2005, at 6:19 AM, Gerriet M. Denkmann wrote:
When I put the computer to sleep (via the Apple-menu) I get after 1
seccond the message "kIOMessageSystemWillSleep", but then it takes 30
seconds until the computer really starts sleeping. This is not very
nice.
2. Why is there the 30 seconds delay between kIOMessageSystemWillSleep
and the actual sleep?
What can I do to avoid this?
Inside the power-event notification callback, you need to call:
IOAllowPowerChange(root_power_service, (long)messageArgument);
...otherwise the 30-second delay is the default behavior.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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