diff options
| author | Vadim Shpakovski | 2015-01-13 20:25:58 +0300 | 
|---|---|---|
| committer | Vadim Shpakovski | 2015-01-13 20:25:58 +0300 | 
| commit | ca561ca70cc45180f25beae054265c08af1c1dd6 (patch) | |
| tree | 564330a7e3f2d77cdeedfdc96d8d0ebd22411747 | |
| parent | 62c142a7f5718fa1c7523d1bd6f6f22430c0329b (diff) | |
| parent | 8dc86c9b62f1f2a4649bf9e09b9afe0a92de00c1 (diff) | |
| download | MASShortcut-ca561ca70cc45180f25beae054265c08af1c1dd6.tar.bz2 | |
Merge pull request #59 from aral/patch-1
Added explicit instructions for use in Swift
| -rw-r--r-- | README.md | 8 | 
1 files changed, 8 insertions, 0 deletions
| @@ -95,6 +95,14 @@ _observableKeyPath = [@"values." stringByAppendingString:kPreferenceGlobalShortc                                                                  context:kGlobalShortcutContext];  ``` +# Using in Swift projects + +  1. Install as a Pod using the latest CocoaPods with Swift support. +  2. Create a bridging header file [using the instructions here](http://swiftalicio.us/2014/11/using-cocoapods-from-swift/) +  3. Your bridging header file should contain the following [two](https://github.com/shpakovski/MASShortcut/issues/36) imports: +        #import <Cocoa/Cocoa.h> +        #import <MASShortcut/Shortcut.h> +  # Non-ARC Version  If you like retain/release, please check out these forks: [heardrwt/MASShortcut](https://github.com/heardrwt/MASShortcut) and [chendo/MASShortcut](https://github.com/chendo/MASShortcut). However, the preferred way is to enable the `-fobjc-arc` in Xcode source options. | 
