Re: NSDistributedNotificationCenter and Launchd
Re: NSDistributedNotificationCenter and Launchd
- Subject: Re: NSDistributedNotificationCenter and Launchd
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 9 Jan 2009 04:09:37 -0500
On Fri, Jan 9, 2009 at 3:58 AM, Aaron Scott <email@hidden> wrote:
> However, once I use launchd to start it as a LaunchDaemon I get no receiving
> of notifications from either the daemon or the GUI app. Is there a way to
> get the notifications to come through or is it near impossible?
Have you read TN2083, "Daemons and Agents"?
http://developer.apple.com/technotes/tn2005/tn2083.html
Looking at the "Supporting Fast User Switching" section of the
"Multiple User Environments" guide, it seems to be implied that
NSDistributedNotificationCenter only works on GUI login sessions.
I'd look into configuring your launchd plist to open up a UNIX domain
socket with which to communicate with other processes.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden