##Chai Expect
##Language Chains
- to
- be
- been
- is
- that
- and
- have
| // | |
| // StickyHeaderLayout.h | |
| // Wombat | |
| // | |
| // Created by Todd Laney on 1/9/13. | |
| // Copyright (c) 2013 ToddLa. All rights reserved. | |
| // | |
| // Modified from http://blog.radi.ws/post/32905838158/sticky-headers-for-uicollectionview-using THANKS! | |
| // |
| // Defines a yet undocumented method to add a warning if super isn't called. | |
| #ifndef NS_REQUIRES_SUPER | |
| #if __has_attribute(objc_requires_super) | |
| #define NS_REQUIRES_SUPER __attribute((objc_requires_super)) | |
| #else | |
| #define NS_REQUIRES_SUPER | |
| #endif | |
| #endif |
##Chai Expect
##Language Chains
| @interface PSPDFThreadSafeMutableDictionary : NSMutableDictionary | |
| @end | |
| #import "PSPDFThreadSafeMutableDictionary.h" | |
| #import <libkern/OSAtomic.h> | |
| @implementation PSPDFThreadSafeMutableDictionary { | |
| OSSpinLock _lock; | |
| NSMutableDictionary *_dictionary; // Class Cluster! |
| #import "SPVMainViewController.h" | |
| @implementation SPVMainViewController | |
| { | |
| UIView *_weightView; | |
| UIPanGestureRecognizer *_recog; | |
| } | |
| - (void)viewDidLoad | |
| { |
| diff --git a/lib/libobjc.A.dylib/NSObject.h b/lib/libobjc.A.dylib/NSObject.h | |
| index 1c2c23e..b7901c1 100644 | |
| --- a/lib/libobjc.A.dylib/NSObject.h | |
| +++ b/lib/libobjc.A.dylib/NSObject.h | |
| @@ -7,7 +7,7 @@ | |
| "int (*funcName)()", where funcName might be null. | |
| */ | |
| -@class NSString; | |
| +@class NSString, UIBezierPath; |
| UIView *PSPDFFindFirstResponderBeneathView(UIView *view) { | |
| // Stop if e.g. we show an UIAlertView with a text field. | |
| if (UIApplication.sharedApplication.keyWindow != view.window) return nil; | |
| // Search recursively for first responder. | |
| for (UIView *childView in view.subviews) { | |
| if ([childView respondsToSelector:@selector(isFirstResponder)] && childView.isFirstResponder) return childView; | |
| UIView *result = PSPDFFindFirstResponderBeneathView(childView); | |
| if (result) return result; | |
| } |
| #import "UITextField+RACKeyboardSupport.h" | |
| #import <ReactiveCocoa/RACEXTScope.h> | |
| #import <ReactiveCocoa/NSObject+RACDescription.h> | |
| @implementation UITextField (RACKeyboardSupport) | |
| - (RACSignal *)rac_keyboardReturnSignal { | |
| @weakify(self); | |
| return [[[[RACSignal | |
| defer:^{ |
| #ifndef NS_DESIGNATED_INITIALIZER | |
| #if __has_attribute(objc_designated_initializer) | |
| #define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer)) | |
| #else | |
| #define NS_DESIGNATED_INITIALIZER | |
| #endif | |
| #endif |