Watch for changes to flagged files in the OSX filesystem (even when they're moved around).
Objective-C
Pull request Compare This branch is 4 commits ahead, 4 commits behind psugihara:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
FileWatcherExample
FileWatcher.h
FileWatcher.m
README

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