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

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.

  • Follow-Ups:
    • Re: File Detection
      • From: Nathan Day <email@hidden>
    • Re: File Detection
      • From: Jim Correia <email@hidden>
References: 
 >File Detection (From: "Anthony Cheung" <email@hidden>)

  • Prev by Date: Re: Hiding an NSTextField
  • Next by Date: Re: Protocols on the fly?
  • Previous by thread: File Detection
  • Next by thread: Re: File Detection
  • Index(es):
    • Date
    • Thread