-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathREADME
More file actions
12 lines (8 loc) · 758 Bytes
/
Copy pathREADME
File metadata and controls
12 lines (8 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
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