• 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: alert from a daemon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alert from a daemon?


  • Subject: Re: alert from a daemon?
  • From: Jens Miltner <email@hidden>
  • Date: Mon, 21 Jan 2008 11:03:15 +0100


On 21.01.2008, at 10:54, Adrian Ross wrote:

Following up...

Mitch was good enough to point me towards CoreFoundation/ CFUserNotification.h. The function CFUserNotificationDisplayNotice does the trick, although it has no effect unless run by an administrator.

Hmm, my daemon runs as "nobody".

In that case you'll need to have a user agent running. Technote 2083 might provide some insight: <http://developer.apple.com/technotes/tn2005/tn2083.html >


Especially, if you can rely on launchd, there might be an option to launch your agent on demand.

HTH,
</jum>





On 21/01/2008, at 6:59 pm, Adrian Ross wrote:

Hi there,

I'm writing a daemon and want to put in "check for updates" functionality. My problem is that, being a daemon, it has no connection to the UI, so I don't know how to notify the user when there's a new version available. It's launched at boot time, runs as user nobody, etc.

Is there a way to display an alert to the currently logged-in user? Anyone have other solutions? I guess I could write a separate executable solely for this task and install it as an agent, but that seems a bit over the top.

Thanks,
Adrian

_______________________________________________

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: 
 >alert from a daemon? (From: Adrian Ross <email@hidden>)
 >Re: alert from a daemon? (From: Adrian Ross <email@hidden>)

  • Prev by Date: Re: alert from a daemon?
  • Next by Date: Re: why are there zero examples in the cocoa docs?!
  • Previous by thread: Re: alert from a daemon?
  • Next by thread: Re: alert from a daemon?
  • Index(es):
    • Date
    • Thread