• 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: Adrian Ross <email@hidden>
  • Date: Mon, 21 Jan 2008 22:54:57 +1300

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".


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


  • Follow-Ups:
    • Re: alert from a daemon?
      • From: Nicko van Someren <email@hidden>
    • Re: alert from a daemon?
      • From: Jens Miltner <email@hidden>
References: 
 >alert from a daemon? (From: Adrian Ross <email@hidden>)

  • Prev by Date: Re: How to rename a filename in uppercase
  • Next by Date: Re: alert from a daemon?
  • Previous by thread: alert from a daemon?
  • Next by thread: Re: alert from a daemon?
  • Index(es):
    • Date
    • Thread