This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface Decorator : NSProxy | |
| @property (strong, readonly) id decoratedObject; | |
| - (id)initWithDecoratedObject:(id)decoratedObject; | |
| @end | |
| @interface Decorator () | |
| @property (strong, readwrite) id decoratedObject; | |
| @end | |
| @implementation Decorator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Forward any unimplemented methods to a particular object property | |
| */ | |
| #define FORWARD_TO_PROPERTY(PROPERTY) \ | |
| - (void)forwardInvocation:(NSInvocation *)anInvocation { \ | |
| if ([super respondsToSelector:anInvocation.selector]) { \ | |
| [super forwardInvocation:anInvocation]; \ | |
| } else { \ | |
| [anInvocation invokeWithTarget:PROPERTY]; \ | |
| } \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pod::Spec.new do |s| | |
| s.name = "ComponentKitTestLib" | |
| s.version = "0.10" | |
| s.summary = "A React-inspired view framework for iOS" | |
| s.homepage = "https://componentkit.com" | |
| s.license = 'BSD' | |
| s.source = { :git => "https://github.com/facebook/ComponentKit.git", :tag => s.version.to_s } | |
| s.platform = :ios, '7.0' | |
| s.requires_arc = true | |
| s.source_files = 'ComponentKitTestLib/*.h', 'ComponentKitTestLib/*.m', 'ComponentKitTestLib/*.mm' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1: name = 'NSLog', locations = 2, resolved = 2, hit count = 18 | |
| Condition: [(NSString*) $arg1 hasPrefix:@"Unbalanced calls"] | |
| 2.1: where = CFNetwork`NSLog, address = 0x0000000106341372, resolved, hit count = 17 | |
| 2.2: where = Foundation`NSLog, address = 0x0000000106d312d3, resolved, hit count = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -[UIViewController _setViewAppearState:(state) isAnimating:(BOOL)] | |
| print (int) $arg3 | |
| state: | |
| 0: did disappear | |
| 1: will appear | |
| 2: did appear | |
| 3: will disappear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define pixel_points(pixelWidth, scale) (pixelWidth / scale) | |
| #define pixel_offset(pixelWidth, scale) (fmod(pixelWidth, 2) ? 0.5 : 0) | |
| #define pixel_round(pos, offset) (lround(pos) + (lround(pos) > pos ? -offset : +offset)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma mark Delegate / data source message forwarding | |
| - (BOOL)respondsToSelector:(SEL)aSelector { | |
| return ([super respondsToSelector:aSelector] || | |
| [self.dataSource respondsToSelector:aSelector] || | |
| [self.delegate respondsToSelector:aSelector]); | |
| } | |
| - (void)forwardInvocation:(NSInvocation *)invocation | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| GREP_OUTPUT=`grep -R 'fdescribe(\|fcontext(\|fexample(\|fspecify(' Tests` | |
| if [ ! -z "$GREP_OUTPUT" ]; then | |
| echo "Remove focussed specs before commiting." | |
| echo $GREP_OUTPUT | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIPageViewControllerEndlessDataSource.h | |
| // Created by Jonathan Crooke on 02/04/2014. | |
| // | |
| #import <UIKit/UIKit.h> | |
| /** | |
| * This data source protocol provides a wrapper for `UIPageViewControllerDataSource` | |
| */ |