Re: alert from a daemon?
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