This file contains 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
/* | |
* Bug in Windows. Under certain cirumstances yet to be | |
* isolated, BCM_SETIMAGELIST does not redraw the control | |
* when a new image is set. The fix is to force a redraw. | |
*/ | |
OS.InvalidateRect (handle, null, true); |
This file contains 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
/* | |
* No need to override setCompletionBlock. -[AFURLConnectionOperation setCompletionBlock:] is fine for us. | |
* Leaving this comment here to account for all public superclass methods | |
- (void)setCompletionBlock:(void (^)(void))block; | |
*/ |
This file contains 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
NSKVODeallocateBreak | |
_NSLockError | |
objc_setEnumerationMutationHandler |
This file contains 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 UINavigationController (Deprecations) | |
- (id)initWithRootViewController:(UIViewController *)rootViewController __attribute__((deprecated)); | |
@end | |
// no implementation of UINavigationController (Deprecations) should be necessary. I just want to add the attribute | |
// should this be a class extension instead of a category? | |
@interface SomethingThatUsesNavigationController : UIViewController | |
@end |
This file contains 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 Foo : NSObject | |
+ (void)bar; | |
@end | |
@implementation Foo | |
+ (void)bar { | |
This file contains 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
package org.github.gist.hborders; | |
/** | |
To automatically configure this Shadow for all tests, create a top-level configuration file named: org.robolectric.Config.properties with the following contents: | |
shadows=org.github.gist.hborders.Fixed895ShadowLooper | |
*/ | |
@SuppressWarnings({"UnusedDeclaration"}) | |
@Implements(Looper.class) |
This file contains 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
class A { | |
} | |
class B extends A { | |
} | |
class C extends A { | |
This file contains 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
- (AFHTTPRequestOperation *)operationForEmptyResponseRequest:(NSURLRequest*) request onComplete:(void(^)(void)) completeBlock onError:(void (^)(NSError *)) errorBlock { | |
void (^nilObjectCompleteBlock)(id); | |
if (complete) { | |
void (^heapCompleteBlock)(void) = [completeBlock copy]; | |
// INTERESTING BITS: | |
// iOS7: this crashes in weird ways if we don't copy the block we assign to nilObjectComplete here. | |
// it is supposed to be safe to pass a block down into another block, but maybe not. | |
nilObjectCompleteBlock = [^(id nilObject) { | |
heapCompleteBlock(); | |
} copy]; |
This file contains 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
// | |
// WeakTestTests.m | |
// WeakTestTests | |
// | |
// Created by Borders, Heath on 2/29/16. | |
// Copyright © 2016 Heath Borders. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> |
This file contains 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
#import <XCTest/XCTest.h> | |
@interface PlaygroundTests : XCTestCase | |
@end | |
@implementation PlaygroundTests | |
static const NSUInteger length = 100000000; |