Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An "interesting" bug involving NSDistributedNotifications



Start old twilight theme music..

Imagine, if you will, a lonely daemon, started at the beginning of time, or
when the system boots, emitting NSDistributedNotifications..

Over there, sits John Q. User, logging into his account.

Little does he know that his next stop is the twilight zone.

Sorry, enough... It's late, and I've been up long enough to be goofy and
the Respect: thread is taking it's toll.

What the bug boils down to is that there must be a setup time for Workspace connections.

If I start the application that listens for the NSDistributedNotifications, it works fine.

If I have the app started automatically at login, it never sees the notifications, it's as
if the default centers connections aren't set up yet (or there is some race condition)

If I have the app do a plain'ol sleep(5); (10 if your on a G3 :-) )
at the start of applicationDidFinishLaunching then it works. Hum..

The good news is that it's very consistent. The bad news is I'm going to file the bug report
tonight, while the muse is still speaking to me. Pre-apologies to the Apple Folks.

chuck


References: 
 >Re: Task create failed error for NSTask (From: Kurt Revis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.