An "interesting" bug involving NSDistributedNotifications
An "interesting" bug involving NSDistributedNotifications
- Subject: An "interesting" bug involving NSDistributedNotifications
- From: Charles Bennett <email@hidden>
- Date: Thu, 15 Nov 2001 20:33:17 -0500
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