An Objective-C wrapper for Mac OS X’s FSEvents C API.
Révision | dc72057d7d6f5200466a83c90201a037c42c7724 (tree) |
---|---|
l'heure | 2013-05-16 15:36:23 |
Auteur | Tomoki Aonuma <uasi@uasi...> |
Commiter | Tomoki Aonuma |
Fix whitespace.
@@ -96,7 +96,7 @@ | ||
96 | 96 | return self; |
97 | 97 | } |
98 | 98 | |
99 | -#pragma mark Specific flag properties | |
99 | +#pragma mark Specific flag properties | |
100 | 100 | - (BOOL)isGenericChange |
101 | 101 | { |
102 | 102 | return (kFSEventStreamEventFlagNone == _flags); |
@@ -1,5 +1,5 @@ | ||
1 | 1 | # CDEvents |
2 | -***Note:*** The `develop` branch **requires Mac OS X 10.6 or newer** as the framework relies on [ARC](http://clang.llvm.org/docs/AutomaticReferenceCounting.html "Automatic Reference Counting Technical Specification") and [blocks](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html "Blocks Programming Topics"). | |
2 | +***Note:*** The `develop` branch **requires Mac OS X 10.6 or newer** as the framework relies on [ARC](http://clang.llvm.org/docs/AutomaticReferenceCounting.html "Automatic Reference Counting Technical Specification") and [blocks](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html "Blocks Programming Topics"). | |
3 | 3 | |
4 | 4 | Website: http://rastersize.github.com/CDEvents |
5 | 5 |
@@ -26,9 +26,9 @@ You can use either the block based version (recommended) or the delegate based. | ||
26 | 26 | Easy example code: |
27 | 27 | |
28 | 28 | self.events = [[CDEvents alloc] initWithURLs:<NSArray of URLs to watch> |
29 | - block:^(CDEvents *watcher, CDEvent *event) { | |
30 | - <Your code here> | |
31 | - }]; | |
29 | + block:^(CDEvents *watcher, CDEvent *event) { | |
30 | + <Your code here> | |
31 | + }]; | |
32 | 32 | |
33 | 33 | Or use all the all-options initiator: |
34 | 34 |
@@ -69,7 +69,7 @@ Example code: | ||
69 | 69 | |
70 | 70 | See the test app (`TestApp`) for an example on how to use the framework. |
71 | 71 | |
72 | -**Important:** Since Mac OS X 10.6 is set as the deployment target automatic zeroing of weak references is not available. Thus you must set the `delegate` of `CDEvents` to `nil` when you no longer want to receive events. That is, at least in your `-dealloc` method. This is also required when using 10.7 and up! (`delegate` is an `unsafe_unretained` property.) | |
72 | +**Important:** Since Mac OS X 10.6 is set as the deployment target automatic zeroing of weak references is not available. Thus you must set the `delegate` of `CDEvents` to `nil` when you no longer want to receive events. That is, at least in your `-dealloc` method. This is also required when using 10.7 and up! (`delegate` is an `unsafe_unretained` property.) | |
73 | 73 | |
74 | 74 | For more details please refer to the documentation in the header files and the section "API documentation" below. |
75 | 75 |