• 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: Watching folders for new files and event handling based on that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Watching folders for new files and event handling based on that?


  • Subject: Re: Watching folders for new files and event handling based on that?
  • From: Tim Perrett <email@hidden>
  • Date: Fri, 10 Aug 2007 23:43:41 +0100

Ok interesting. Forgive my ignorance, but a kqueue notifies the workspace of changes to the file system?

The functionality im looking for is literally, here is a folder, drop X file in there which executes Z operation in the application.

I guess otherwise i'd be down to have a 2nd thread ticking over occasionally checking the contents of that directory, then going from there?

Cheers

Tim



On 10 Aug 2007, at 18:56, Gregory Weston wrote:

Getting this in digest mode means someone has already likely responded, but presuming you don't care about anything older than 10.3 the standard solution is to use kqueues, for which list participant Uli Kusterer has a nice Objective-C wrapper:

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

Look for UKKQueue.

_______________________________________________

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: Watching folders for new files and event handling based on that?
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: Watching folders for new files and event handling based on that? (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: Cocoa and PICT
  • Next by Date: convert NSBitmapImageRep to black/white depending on pixel hsb
  • Previous by thread: Re: Watching folders for new files and event handling based on that?
  • Next by thread: Re: Watching folders for new files and event handling based on that?
  • Index(es):
    • Date
    • Thread