Re: CFNotificationCenter from a startup item
Re: CFNotificationCenter from a startup item
- Subject: Re: CFNotificationCenter from a startup item
- From: Pete Gontier <email@hidden>
- Date: Thu, 09 Dec 2004 01:12:25 -0800
circa 12/8/04 6:06 PM, "Stéphane Sudre" <email@hidden> wrote:
>> I've got some programs which use CFNotificationCenter to communicate. One of
>> them is an CoreServices-style app. When I launch this app from the terminal
>> or from a debugger, it can send and receive distributed notifications.
>> However, when the app is launched as a startup item, it doesn't successfully
>> send or receive distributed notifications. I enabled the debug version of
>> CoreFoundation and enabled notification logging, and when I launch the app
>> from a terminal, the log says "checking_client" and "posting_note_to" for my
>> client, but when the app is launched as a startup item, the log says only
>> "skipping_client" for my client. Ouch! I grepped the Darwin sources for
>> "skipping_client" to no avail. Double ouch! What's the damage here?
> There's a new API or option in Panther to allow this. Check
> CFNotificationSomething.h. It's the API or option which allows to cross
> sessions.
I presume you are referring to passing kCFNotificationPostToAllSessions to
CFNotificationCenterPostNotificationWithOptions, because that did the trick,
at least for my helper app. Thanks!
--
Pete Gontier
http://www.m-audio.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden