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

Re: DirWatch


  • Subject: Re: DirWatch
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 22 May 2008 16:33:58 -0700


On 2008 May, 22, at 15:45, Robert Cerny wrote:

On 23.5.2008, at 0:32, Lorenzo wrote:

I need to watch at a given folder and check whenever a new file has been
copied therein. At the beginning, I fired a timer periodically getting the
list of the contents of that folder with


directoryContentsAtPath

Don't do that. The solution for this problem has been built into the system since Mac OS 10.2 or .3, as noted by Robert:


UKQueue by Uli
<http://www.zathras.de/angelweb/sourcecode.htm>

And if your target is Mac OS 10.5 or later, look into FSEvents.

_______________________________________________

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


  • Follow-Ups:
    • Re: DirWatch
      • From: Simon Wolf <email@hidden>
    • Re: DirWatch
      • From: Jens Alfke <email@hidden>
References: 
 >DirWatch (From: Lorenzo <email@hidden>)
 >Re: DirWatch (From: Robert Cerny <email@hidden>)

  • Prev by Date: updated post
  • Next by Date: Re: DirWatch
  • Previous by thread: Re: DirWatch
  • Next by thread: Re: DirWatch
  • Index(es):
    • Date
    • Thread