• 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: NSDistributedNotificationCenter and Launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSDistributedNotificationCenter and Launchd (From: Aaron Scott <email@hidden>)

  • Prev by Date: Re: Help
  • Next by Date: Re: NSDecimalNumber seen as NSCFNumber; a bug? (not solved)
  • Previous by thread: NSDistributedNotificationCenter and Launchd
  • Next by thread: Re: NSDistributedNotificationCenter and Launchd
  • Index(es):
    • Date
    • Thread