Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Watch for changes to flagged files in the OSX filesystem (even when they're moved around).
branch: master
Failed to load latest commit information.
FileWatcherExample
README Trying again

README

FileWatcher is a simple class to watch for changes on files in OSX. FileWatcher will see changes and keep track of file locations even if the user moves the files in the finder. All the magic happens in FileWatcher.m.

To run the test app see the example in the applicationDidFinishLaunching method of ./FileWatcherExample/Classes/FileWatcherExampleAppDelegate.m.
Once a path is given to the watcher, watch the console as you make changes to the file.

This is free under the MIT license, so do whatever with it (Dropbox clones anyone?).

-Peter Sugihara

References:
- http://developer.apple.com/library/mac/#featuredarticles/FileSystemEvents/index.html
- http://www.cocoabuilder.com/archive/cocoa/284420-how-do-get-file-reference-o-relying-on-the-path.html
Something went wrong with that request. Please try again.