An Objective-C wrapper for Mac OS X’s FSEvents C API.
Revision | 1cd1dbae473a8d5e38494ba783c75732e880dacd (tree) |
---|---|
Time | 2010-04-04 03:01:25 |
Author | Aron Cedercrantz <aron@cede...> |
Commiter | Aron Cedercrantz |
Added disposeEventStream method.
@@ -161,6 +161,17 @@ ignoreEventsFromSubDirs:(BOOL)ignoreEventsFromSubDirs | ||
161 | 161 | |
162 | 162 | |
163 | 163 | #pragma mark Private API: |
164 | +- (void)disposeEventStream | |
165 | +{ | |
166 | + if (!(_eventStream)) { | |
167 | + return; | |
168 | + } | |
169 | + | |
170 | + FSEventStreamStop(_eventStream); | |
171 | + FSEventStreamInvalidate(_eventStream); | |
172 | + FSEventStreamRelease(_eventStream); | |
173 | + _eventStream = NULL; | |
174 | +} | |
164 | 175 | |
165 | 176 | |
166 | 177 |