You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* release/1.2.0: (32 commits)
Bump copyright years.
Change framework version to 1.2.0.
Update podspec to 1.2.0.
Add compile time check of ARC and blocks.
Update Xcode project.
Fix ARC setting in podspec.
Add podspec by @dwlnetnl (#13).
Remove link to GitHub messages.
Correctly handle path that contains spaces
Made CDEvents class create CDEvent objects with file URLs instead of normal URLs (allows easier comparison with NSURL objects returned by eg. NSFileManager)
Update README.mdown
Fix contributors URL.
Change the authors section in the readme.
Update readme with link to new website.
Ignore "docs" directory.
Update readme to reflect online documentation.
Add license file.
Add script to generate documentation using appledoc.
Update the read me to reflect the new changes.
Update the test app to be able to use blocks API.
...
* Returns an <code>CDEvents</code> object initialized with the given URLs to watch, URLs to exclude, wheter events from sub-directories are ignored or not and schedules the watcher on the given run loop.
* with <code>sinceEventIdentifier</code> with the event identifier for "event
366
+
* since now", <code>notificationLatency</code> set to 3.0 seconds,
367
+
* <code>ignoreEventsFromSubDirectories</code> set to <code>NO</code>,
368
+
* <code>excludedURLs</code> to <code>nil</code> and the event stream creation
369
+
* flags will be set to <code>kCDEventsDefaultEventStreamFlags</code>.
370
+
*
371
+
* @since head
372
+
*/
373
+
- (id)initWithURLs:(NSArray *)URLs
374
+
block:(CDEventsEventBlock)block
375
+
onRunLoop:(NSRunLoop *)runLoop;
376
+
377
+
/**
378
+
* Returns an <code>CDEvents</code> object initialized with the given URLs to watch, URLs to exclude, wheter events from sub-directories are ignored or not and schedules the watcher on the given run loop.
379
+
*
380
+
* @param URLs An array of URLs (<code>NSURL</code>) we want to watch.
381
+
* @param block The block which the CDEvents object executes when it recieves an event.
382
+
* @param runLoop The run loop which the which the watcher should be schedueled on.
383
+
* @param sinceEventIdentifier Events that have happened after the given event identifier will be supplied.
384
+
* @param notificationLatency The (approximate) time intervall between notifications sent to the delegate.
385
+
* @param ignoreEventsFromSubDirs Wheter events from sub-directories of the watched URLs should be ignored or not.
386
+
* @param exludeURLs An array of URLs that we should ignore events from. Pass <code>nil</code> if none should be excluded.
387
+
* @param streamCreationFlags The event stream creation flags.
388
+
* @return An CDEvents object initialized with the given URLs to watch, URLs to exclude, wheter events from sub-directories are ignored or not and run on the given run loop.
389
+
* @throws NSInvalidArgumentException if the parameter URLs is empty or points to <code>nil</code>.
390
+
* @throws NSInvalidArgumentException if <em>delegate</em>is <code>nil</code>.
391
+
* @throws CDEventsEventStreamCreationFailureException if we failed to create a event stream.
392
+
*
393
+
* @see initWithURLs:delegate:
394
+
* @see initWithURLs:delegate:onRunLoop:
395
+
* @see ignoreEventsFromSubDirectories
396
+
* @see excludedURLs
397
+
* @see CDEventsEventBlock
398
+
* @see FSEventStreamCreateFlags
399
+
*
400
+
* @discussion To ask for events "since now" pass the return value of
401
+
* currentEventIdentifier as the parameter <code>sinceEventIdentifier</code>.
402
+
* CDEventStreamCreationFailureException should be extremely rare.
0 commit comments