• 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: Scheduled command execution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheduled command execution


  • Subject: Re: Scheduled command execution
  • From: ∞ <email@hidden>
  • Date: Sun, 22 Jul 2007 09:09:44 +0200


Il giorno 22/lug/07, alle ore 02:50, Alexander Hartner ha scritto:

I have developed an application which needs to be run periodically in the background. I would like it however to still interact with the desktop for notifications and application such as growl. Initially I was hoping to be able to use cron. Cron executes the application but does not provide access to desktop notifications.

Cocoa does not provide facilities for this. You can:

- develop a daemon with a desktop agent, or
- use CFUserNotification in your daemon from Core Foundation. It is made expressly for off-console (root) daemons that want to communicate with the user via alerts.


http://developer.apple.com/documentation/CoreFoundation/Reference/ CFUserNotificationRef/Reference/reference.html

Also look at the TN: http://developer.apple.com/technotes/tn2005/ tn2083.html -- it contains useful information for what you are trying to accomplish.

 - ∞_______________________________________________

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: 
 >Scheduled command execution (From: Alexander Hartner <email@hidden>)

  • Prev by Date: Quickest Drawing Method
  • Next by Date: Re: Quickest Drawing Method
  • Previous by thread: Scheduled command execution
  • Next by thread: Re: Scheduled command execution
  • Index(es):
    • Date
    • Thread