Skip to content

Instantly share code, notes, and snippets.

@tboyce12
tboyce12 / gist:543835a7ffcf578ff5f32ffc3940ea6b
Created April 11, 2019 22:12 — forked from nielsbot/gist:5155671
A wrapper around kqueue to monitor changes to files. Works on iOS.
#import "FileChangeObserver.h"
#undef Assert
#define Assert(COND) { if (!(COND)) { raise( SIGINT ) ; } }
@interface FileChangeObserver ()
@property ( nonatomic, readonly ) int kqueue ;
@property ( nonatomic ) enum FileChangeNotificationType typeMask ;
@end