Re: File Detection
Re: File Detection
- Subject: Re: File Detection
- From: Nathan Day <email@hidden>
- Date: Mon, 28 Apr 2003 20:30:51 +0930
Someone has released some code that does this and they basically just
do what you suggest periodically checking for any change. If you are
not to concerned with knowing immediately about any change, polling
every 5 secs or even every 5 min, then this is not much for cpu running
at 1 GHz.
On Monday, April 28, 2003, at 06:21 PM, Anthony Cheung wrote:
Hello everyone,
I am writing a Cocoa application which detects what files are go into a
folder, that is a hot folder. I have checked NSFileManager which
provides a
delegate method - willProcessPath: . However, it seems that
NSFileManager
doesn't have any notification center.
Then what I do is to attach a NSTimer and regularly check if there is
any new
file come into the folder. However, I am afraid that will involve a
lot of
processor resource. Would you kindly suggest another method.
Regards,
Anthony Cheung
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.