• 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: Simon Wolf <email@hidden>
  • Date: Fri, 23 May 2008 09:22:09 +0100

On 23 May 2008, at 00:33, Jerry Krinock wrote:


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.

And if you do that, Stuart Connolly has written a nice wrapper called SCEvents:
http://stuconnolly.com/projects/source-code/


Simon

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >DirWatch (From: Lorenzo <email@hidden>)
 >Re: DirWatch (From: Robert Cerny <email@hidden>)
 >Re: DirWatch (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)
  • Next by Date: Query about Zip command
  • Previous by thread: Re: DirWatch
  • Next by thread: Re: DirWatch
  • Index(es):
    • Date
    • Thread