An Objective-C wrapper for Mac OS X’s FSEvents C API.
リビジョン | 1ccca38174ac4b4e13ce7ab992d7a83e4b49fe00 (tree) |
---|---|
日時 | 2011-02-14 11:57:30 |
作者 | Aron Cedercrantz <aron@cede...> |
コミッター | Aron Cedercrantz |
Fixed a bug in the test app which could cause an exception to be raised.
@@ -34,13 +34,13 @@ | ||
34 | 34 | @implementation CDEventsTestAppController |
35 | 35 | |
36 | 36 | - (void)run |
37 | -{ | |
37 | +{ | |
38 | 38 | NSArray *watchedURLs = [NSArray arrayWithObject: |
39 | 39 | [NSURL URLWithString:[NSHomeDirectory() |
40 | 40 | stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; |
41 | 41 | NSArray *excludeURLs = [NSMutableArray arrayWithObject: |
42 | - [[NSHomeDirectory() stringByAppendingPathComponent:@"Downloads"] | |
43 | - stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; | |
42 | + [NSURL URLWithString:[[NSHomeDirectory() stringByAppendingPathComponent:@"Downloads"] | |
43 | + stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; | |
44 | 44 | |
45 | 45 | _events = [[CDEvents alloc] initWithURLs:watchedURLs |
46 | 46 | delegate:self |
@@ -50,6 +50,7 @@ | ||
50 | 50 | ignoreEventsFromSubDirs:CD_EVENTS_DEFAULT_IGNORE_EVENT_FROM_SUB_DIRS |
51 | 51 | excludeURLs:excludeURLs |
52 | 52 | streamCreationFlags:kCDEventsDefaultEventStreamFlags]; |
53 | + //[_events setIgnoreEventsFromSubDirectories:YES]; | |
53 | 54 | |
54 | 55 | NSLog(@"-[CDEventsTestAppController run]:\n%@\n------\n%@", |
55 | 56 | _events, |