An Objective-C wrapper for Mac OS X’s FSEvents C API.
Révision | b3fdee2270713376d1734528e6f55e81fabea80d (tree) |
---|---|
l'heure | 2014-02-21 07:59:33 |
Auteur | Aron Cedercrantz <aron@cede...> |
Commiter | Aron Cedercrantz |
Merge pull request #24 from rience/develop
Fix warnings in Xcode 5.
@@ -83,7 +83,7 @@ | ||
83 | 83 | self = [self initWithIdentifier:[[aDecoder decodeObjectForKey:@"identifier"] unsignedIntegerValue] |
84 | 84 | date:[aDecoder decodeObjectForKey:@"date"] |
85 | 85 | URL:[aDecoder decodeObjectForKey:@"URL"] |
86 | - flags:[[aDecoder decodeObjectForKey:@"flags"] unsignedIntegerValue]]; | |
86 | + flags:[[aDecoder decodeObjectForKey:@"flags"] unsignedIntValue]]; | |
87 | 87 | |
88 | 88 | return self; |
89 | 89 | } |
@@ -60,10 +60,10 @@ const CDEventIdentifier kCDEventsSinceEventNow = kFSEventStreamEventIdSinceNow; | ||
60 | 60 | // Private API |
61 | 61 | @interface CDEvents () { |
62 | 62 | @private |
63 | - CDEventsEventBlock _eventBlock; | |
63 | + CDEventsEventBlock _eventBlock; | |
64 | 64 | |
65 | - FSEventStreamRef _eventStream; | |
66 | - NSUInteger _eventStreamCreationFlags; | |
65 | + FSEventStreamRef _eventStream; | |
66 | + CDEventsEventStreamCreationFlags _eventStreamCreationFlags; | |
67 | 67 | } |
68 | 68 | |
69 | 69 | // Redefine the properties that should be writeable. |
@@ -313,7 +313,7 @@ streamCreationFlags:(CDEventsEventStreamCreationFlags)streamCreationFlags | ||
313 | 313 | (__bridge CFArrayRef)watchedPaths, |
314 | 314 | (FSEventStreamEventId)[self sinceEventIdentifier], |
315 | 315 | [self notificationLatency], |
316 | - _eventStreamCreationFlags); | |
316 | + (uint) _eventStreamCreationFlags); | |
317 | 317 | } |
318 | 318 | |
319 | 319 | - (void)disposeEventStream |