An Objective-C wrapper for Mac OS X’s FSEvents C API.
Revision | b0e1f6db19aa32a204c7baa7ea523a574401b1e3 (tree) |
---|---|
Zeit | 2011-02-05 10:52:42 |
Autor | Aron Cedercrantz <aron@cede...> |
Commiter | Aron Cedercrantz |
Fixed a dup symbols bug properly, thanks to Kirk Kerekes.
@@ -70,7 +70,7 @@ extern NSString *const CDEventsEventStreamCreationFailureException; | ||
70 | 70 | * |
71 | 71 | * @since 1.0.0 |
72 | 72 | */ |
73 | -#define CD_EVENTS_DEFAULT_NOTIFICATION_LATENCY (NSTimeInterval)3.0 | |
73 | +#define CD_EVENTS_DEFAULT_NOTIFICATION_LATENCY ((NSTimeInterval)3.0) | |
74 | 74 | |
75 | 75 | /** |
76 | 76 | * The default value wheter events from sub directories should be ignored or not. |
@@ -84,16 +84,14 @@ extern NSString *const CDEventsEventStreamCreationFailureException; | ||
84 | 84 | * |
85 | 85 | * @since 1.0.0 |
86 | 86 | */ |
87 | -const CDEventsEventStreamCreationFlags kCDEventsDefaultEventStreamFlags = | |
88 | - (kFSEventStreamCreateFlagUseCFTypes | | |
89 | - kFSEventStreamCreateFlagWatchRoot); | |
87 | +extern const CDEventsEventStreamCreationFlags kCDEventsDefaultEventStreamFlags; | |
90 | 88 | |
91 | 89 | /** |
92 | 90 | * Use this to get all event since now when initializing a CDEvents object. |
93 | 91 | * |
94 | 92 | * @since 1.1.0 |
95 | 93 | */ |
96 | -const CDEventIdentifier kCDEventsSinceEventNow = kFSEventStreamEventIdSinceNow; | |
94 | +extern const CDEventIdentifier kCDEventsSinceEventNow; | |
97 | 95 | |
98 | 96 | |
99 | 97 | #pragma mark - |
@@ -13,6 +13,14 @@ | ||
13 | 13 | #pragma mark CDEvents custom exceptions |
14 | 14 | NSString *const CDEventsEventStreamCreationFailureException = @"CDEventsEventStreamCreationFailureException"; |
15 | 15 | |
16 | +#pragma - | |
17 | +#pragma mark Default values | |
18 | +const CDEventsEventStreamCreationFlags kCDEventsDefaultEventStreamFlags = | |
19 | + (kFSEventStreamCreateFlagUseCFTypes | | |
20 | + kFSEventStreamCreateFlagWatchRoot); | |
21 | + | |
22 | +const CDEventIdentifier kCDEventsSinceEventNow = kFSEventStreamEventIdSinceNow; | |
23 | + | |
16 | 24 | |
17 | 25 | #pragma mark - |
18 | 26 | #pragma mark Private API |