Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alert from a daemon?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >alert from a daemon? (From: Adrian Ross <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.