Permalink
Browse files

Move check out of header so people using -fobjc-arc in non-ARC projec…

…ts can still use this class.
  • Loading branch information...
1 parent 5e1ce8e commit ee696aa2ede0eac0f8edaa9e6318eb0db0481dcf @uliwitness uliwitness committed Jan 26, 2014
Showing with 5 additions and 5 deletions.
  1. +1 −5 NSObject+JCSKVOWithBlocks.h
  2. +4 −0 NSObject+JCSKVOWithBlocks.m
@@ -32,14 +32,10 @@
*/
-#if !__has_feature(objc_arc)
-#warning "NSObject+JCSKVOWithBlocks only runs under ARC."
-#endif
+#import <Foundation/Foundation.h>
typedef void (^jcsObservationBlock)(NSDictionary *change);
-#import <Foundation/Foundation.h>
-
@interface NSObject (JCSKVOWithBlocks)
/** Register to observe a keypath
@@ -22,6 +22,10 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !__has_feature(objc_arc)
+#warning "NSObject+JCSKVOWithBlocks only runs under ARC."
+#endif
+
#ifndef DEBUG
#ifndef NS_BLOCK_ASSERTIONS
#define NS_BLOCK_ASSERTIONS

0 comments on commit ee696aa

Please sign in to comment.