Re: slow NSWorkspaceDidWakeNotification
Re: slow NSWorkspaceDidWakeNotification
- Subject: Re: slow NSWorkspaceDidWakeNotification
- From: Shaun Wexler <email@hidden>
- Date: Tue, 15 Mar 2005 17:07:48 -0800
On Mar 15, 2005, at 12:05 PM, Sean McBride wrote:
On 2005-03-10 17:30, Gerriet M. Denkmann said:
So I implemented NSWorkspaceDidWakeNotification to update the time
immediately after waking up.
But: it takes 5 to 7 seconds for this notification to arrive (10.3.8,
iBook G4).
Is this normal? Do I make something wrong? Can I do something better?
Since no one else replied, I'll say 'yes, it is normal'. At least, I
see
the same thing. Maybe file a bug with Apple asking them to optimise it.
#include "StdDisclaimer/WrittenInMail.app"
void SystemSleepCallBack(void *refcon, io_service_t service, natural_t
messageType, void *messageArgument)
{
if (messageType == kIOMessageSystemHasPoweredOn) {
;
}
}
io_connect_t rootPowerService;
io_object_t notifier;
IONotificationPortRef notificationPort;
rootPowerService = IORegisterForSystemPower(NULL, ¬ificationPort,
SystemSleepCallBack, ¬ifier);
CFRunLoopAddSource(CFRunLoopGetCurrent(),
IONotificationPortGetRunLoopSource(notificationPort),
kCFRunLoopCommonModes);
... or something to that effect. HTH~
--
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