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