• 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
Folder watching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Folder watching


  • Subject: Folder watching
  • From: Mark Woods <email@hidden>
  • Date: Tue, 10 Feb 2009 15:30:31 +0000

I'm creating an application that watches certain folders for new files, and then performs various tasks on these files. I'm developing it as a Foundation Tool that will run in the background.

I'm having difficulties deciding how best to implement the folder watching code. I was really hoping there would be a Cocoa way of doing this, and NSWorkspace looked promising except that it appears that the notifications don't actually work - is this correct? I certainly couldn't get them working and I found lots of discussion topics where other people said they did not work.

So I started looking at Carbon. FNSubscribe looked promising except that it appears to be designed for GUI apps. The new Leopard File System Events API looks great except that I need this app to also be compatible with Tiger.

So all that leaves is kqueue. Is that my only option?

Thanks,
Mark.
_______________________________________________

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: Folder watching
      • From: Jerry Krinock <email@hidden>
    • Re: Folder watching
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Objective-C question
  • Next by Date: Re: Objective-C question
  • Previous by thread: Re: Objective-C question
  • Next by thread: Re: Folder watching
  • Index(es):
    • Date
    • Thread