Browse files

Merge pull request #19 from cysp/declare-swizzles

Declare swizzled selectors to silence warnings
  • Loading branch information...
2 parents d033aab + ed3b560 commit 2681d4aadaab9556e2128175ebdd3507300083c8 @mikeash committed Sep 27, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Source/MAZeroingWeakRef.m
View
9 Source/MAZeroingWeakRef.m
@@ -78,6 +78,15 @@ - (BOOL)_isKVOA;
#endif
+@interface NSObject (MAZeroingWeakRefSwizzled)
+- (void)MAZeroingWeakRef_KVO_original_release;
+- (void)MAZeroingWeakRef_KVO_original_dealloc;
+- (void)MAZeroingWeakRef_KVO_original_addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(void *)context;
+- (void)MAZeroingWeakRef_KVO_original_removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
+- (void)MAZeroingWeakRef_KVO_original_removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(void *)context;
+@end
+
+
static void EnsureCustomSubclass(id obj);
@interface MAZeroingWeakRef ()

0 comments on commit 2681d4a

Please sign in to comment.