• 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: slow NSWorkspaceDidWakeNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, &notificationPort, SystemSleepCallBack, &notifier);
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

  • Follow-Ups:
    • Re: slow NSWorkspaceDidWakeNotification
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >slow NSWorkspaceDidWakeNotification (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: slow NSWorkspaceDidWakeNotification (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: multidimensional arrays
  • Next by Date: Re: dataUsingEncoding: vs. archivedDataWithRootObject:
  • Previous by thread: Re: slow NSWorkspaceDidWakeNotification
  • Next by thread: Re: slow NSWorkspaceDidWakeNotification
  • Index(es):
    • Date
    • Thread