• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

An Objective-C wrapper for Mac OS X’s FSEvents C API.


Commit MetaInfo

Revision1cd1dbae473a8d5e38494ba783c75732e880dacd (tree)
Time2010-04-04 03:01:25
AuthorAron Cedercrantz <aron@cede...>
CommiterAron Cedercrantz

Log Message

Added disposeEventStream method.

Change Summary

Incremental Difference

--- a/CDEvents.m
+++ b/CDEvents.m
@@ -161,6 +161,17 @@ ignoreEventsFromSubDirs:(BOOL)ignoreEventsFromSubDirs
161161
162162
163163 #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+}
164175
165176
166177