An Objective-C wrapper for Mac OS X’s FSEvents C API.
Revision | f4da94003e8b82a72136ac06cd3bdf893cf89d2d (tree) |
---|---|
Time | 2011-08-31 03:29:43 |
Author | Aron Cedercrantz <aron@cede...> |
Commiter | Aron Cedercrantz |
Updated the readme to reflect the new deployment target.
@@ -5,7 +5,7 @@ | ||
5 | 5 | It's an Objective-C wrapper for Mac OS X's [FSEvents C API](http://developer.apple.com/mac/library/documentation/Darwin/Reference/FSEvents_Ref/FSEvents_h/index.html). Inspired and based upon the ([MIT-licensed](http://www.opensource.org/licenses/mit-license.php)) open source project [SCEvents](http://stuconnolly.com/projects/code/) created by [Stuart Connolly](http://stuconnolly.com/). |
6 | 6 | |
7 | 7 | ## Requirements ## |
8 | -Requires Mac OS X 10.7 (Lion) and an Intel 64-bit CPU, the requirements stem from that automatic reference counting (ARC) was introduced with full support in OS X 10.7 when using the modern (i.e. 64-bit) Objective-C runtime. Supports both manual memory management and automatic reference counting. | |
8 | +Requires Mac OS X 10.6 (Snow Leopard) and an Intel 64-bit CPU. The requirements stems from that automatic reference counting (ARC) is supported from 10.6 and up as long as the modern (i.e. 64-bit) Objective-C runtime is used. (ARC requires the non-fragile ABI.) Although the built product should work on 10.6 and up it must be built on a machine running 10.7 (Lion) using Xcode 4.2 and the 10.7 SDK as the 10.6 SDK does not include ARC. Supports both manual memory management and automatic reference counting. | |
9 | 9 | |
10 | 10 | If you need to support older versions of OS X please see the non-ARC branch, currently `develop` and `master`. Though which branch is the non-ARC will probably change in the future. |
11 | 11 |
@@ -30,6 +30,8 @@ If you need to support older versions of OS X please see the non-ARC branch, cur | ||
30 | 30 | ignoreEventsFromSubDirs:CD_EVENTS_DEFAULT_IGNORE_EVENT_FROM_SUB_DIRS |
31 | 31 | excludeURLs:<NSArray of URLs to exlude> |
32 | 32 | streamCreationFlags:kCDEventsDefaultEventStreamFlags]; |
33 | + | |
34 | +**Important:** Since we have 10.6 set as the deployment target automatic zeroing of weak references is not available and as such 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! | |
33 | 35 | |
34 | 36 | For more details please refer to the documentation in the header files and the section "API documentation" below. |
35 | 37 |