• 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: Service without Icon or Window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Service without Icon or Window?


  • Subject: Re: Service without Icon or Window?
  • From: Lightning Duck <email@hidden>
  • Date: Wed, 16 Jun 2010 05:34:40 -0600

Thanks, all, for the advice and the pointers


Take care,
Jay

On Jun 15, 2010, at 5:05 PM, Peter Ammon wrote:

>
> On Jun 15, 2010, at 2:56 PM, Lightning Duck wrote:
>
>> I need to make an application  that runs a bit as a 'service' if you will.  Not in the sense of running from the "Services" menu but something the tuns continually in the background with an Icon in the Dock or a Window of it's own, that monitors when files are added or removed from a directory
>>
>> So basically I have two requirements
>>
>> Monitor the contents of a directory
>>
>> Run without visibility?
>>
>> Can anyone send me to some pointers for how to do either, or both, of these tasks?
>
> It sounds like you want a launchd agent.  launchd can launch your program when certain paths are modified, via the WatchPaths or QueueDirectories info plist keys.
>
> The advantage of this approach is that your process does not have to run continuously in the background: it's launched on-demand, and can exit when it's finished.
>
> -Peter _______________________________________________
>
> 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

_______________________________________________

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: 
 >Service without Icon or Window? (From: Lightning Duck <email@hidden>)
 >Re: Service without Icon or Window? (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Core Data : Managed Object Models : Configurations, Versions
  • Next by Date: Problem using NSGradient with dataWithPDFInsideRect
  • Previous by thread: Re: Service without Icon or Window?
  • Next by thread: [iPhone] Determining minimum height for a UIWebView
  • Index(es):
    • Date
    • Thread