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