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
| - (void)display | |
| { | |
| dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, NULL); | |
| dispatch_async(queue, ^{ | |
| size_t contextWidth = [self boundsWidth]; | |
| size_t contextHeight = [self boundsHeight]; | |
| CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); | |
| CGContextRef context = CGBitmapContextCreate(NULL, contextWidth, contextHeight, 8, 0, colorSpace, kCGImageAlphaPremultipliedLast); | |
| CGColorSpaceRelease(colorSpace); | |
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 Superclass : NSObject | |
| @property (strong) id test; | |
| @end | |
| @implementation Superclass | |
| @synthesize test; | |
| @end | |
| @interface Subclass : Superclass | |
| @property (strong) UIView* test; |
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
| @protocol ChildProtocol; | |
| @protocol ParentProtocol <NSObject> | |
| @property (nonatomic, strong, readonly) id<ChildProtocol> child; | |
| @end | |
| @protocol ChildProtocol <NSObject> | |
| @property (nonatomic, weak, readonly) id<ParentProtocol> parent; | |
| @end |
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
| // | |
| // LaSouris2VideoPageViewController.m | |
| // iConte | |
| // | |
| // Created by David Hart on 7/7/11. | |
| // Copyright 2011 hart[dev]. All rights reserved. | |
| // | |
| #import "LaSouris2VideoPageViewController.h" |
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
| Process: Gravibot [58225] | |
| Path: /Users/USER/Library/Application Support/iPhone Simulator/*/Gravibot.app/Gravibot | |
| Identifier: Gravibot | |
| Version: ??? (???) | |
| Code Type: X86 (Native) | |
| Parent Process: launchd [235] | |
| Date/Time: 2011-09-28 08:33:13.707 +0200 | |
| OS Version: Mac OS X 10.7.1 (11B26) | |
| Report Version: 9 |
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
| {"name":"David Hart","age":26,"color":"Black"} |
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
| expect(object).beTruthy(); | |
| expect(object).to.beTruthy(); // to = no-op | |
| expect(object).toNot.beTruthy(); // noNot = Not | |
| expect(object).will.beTruthy(); // will = isGoing | |
| expect(object).willNot.beTruthy(); // willNot = isNotGoing | |
| // OR ALTERNATIVE CEDAR STYLE | |
| expect(object).be_truthy(); | |
| expect(object).to.be_truthy(); |
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 Child : NSObject | |
| @property (nonatomic, weak, readonly) Parent* parent; | |
| - (id)initWithParent:(Parent*)parent; | |
| @end |
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
| @try { | |
| // Exceptions here are not catched | |
| [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; | |
| matchResult = _matchExceptionBlock(nil); | |
| } @catch (NSException* exception) { | |
| matchResult = _matchExceptionBlock(exception); | |
| } |
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
| __block Texture* asyncTexture = nil; | |
| [resourceManager textureWithName:VALID completion:^(Texture* texture) { | |
| asyncTexture = texture; | |
| }]; | |
| expect(asyncTexture).willNot.beNil(); | |
| expect([resourceManager resourceIsLoadedWithName:VALID]).will.beTruthy(); |