Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FileSystemWatch* watcher = [[FileSystemWatch alloc] init];
- [watcher watchFileAtPath:@"path/to/config.plist" target:self action:@selector(fileChanged:)];
- ...
- - (void)fileChanged:(FileSystemWatch*)watcher
- {
- NSLog(@"File changed, time to reload");
- }
Add Comment
Please, Sign In to add comment