• 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

Revisión966cfd188c271bd4163ef46b95a966659199fa4a (tree)
Tiempo2010-04-04 03:01:41
AutorAron Cedercrantz <aron@cede...>
CommiterAron Cedercrantz

Log Message

Added createEventStream method.

Cambiar Resumen

Diferencia incremental

--- a/CDEvents.m
+++ b/CDEvents.m
@@ -161,6 +161,25 @@ ignoreEventsFromSubDirs:(BOOL)ignoreEventsFromSubDirs
161161
162162
163163 #pragma mark Private API:
164+- (void)createEventStream
165+{
166+ FSEventStreamContext callbackCtx;
167+
168+ callbackCtx.version = 0;
169+ callbackCtx.info = (void *)self;
170+ callbackCtx.retain = NULL;
171+ callbackCtx.release = NULL;
172+ callbackCtx.copyDescription = NULL;
173+
174+ _eventStream = FSEventStreamCreate(kCFAllocatorDefault,
175+ &CDEventsCallback,
176+ &callbackCtx,
177+ (CFArrayRef)[self watchedURLs],
178+ (FSEventStreamEventId)[self sinceEventIdentifier],
179+ [self notificationLatency],
180+ kCDEventsEventStreamFlags);
181+}
182+
164183 - (void)disposeEventStream
165184 {
166185 if (!(_eventStream)) {