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 <GHUnitIOS/GHUnit.h> // i have this in my prefix file. Otherwise, uncomment | |
//#import "OCMock.h" // optional, but used often | |
#import "MyClass.h" | |
@interface MyClassTest : GHTestCase {} | |
@property (nonatomic, retain) MyClass *testInstance; | |
@end | |
@implementation MyClassTest | |
@synthesize testInstance; |
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
-(void) asyncSearchFor:(NSString *)searchTerm toCount:(int)maxCount | |
{ | |
if (searchTerm == nil) | |
{ | |
searchTerm = @""; | |
} | |
NSArray *args = [[NSArray alloc] initWithObjects:searchTerm, [NSNumber numberWithBool:NO], [NSNumber numberWithInt:maxCount], nil]; | |
[self performSelectorInBackground:@selector(searchForPrep:) withObject:args]; | |
} |
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
// | |
// HTTPRouter.h | |
// DynamicServer | |
// | |
// Created by Zachry Thayer on 5/9/12. | |
// Copyright (c) 2012 Zachry Thayer. All rights reserved. | |
// | |
#import "HTTPConnection.h" | |
#import "HTTPMessage.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
@implementation NHEdgeToEdgeScrollView | |
- (BOOL)hitTestWithWorldPos:(CGPoint)pos | |
{ | |
pos = [self convertToNodeSpace:pos]; | |
if ((pos.y < 0) || (pos.y > self.contentSizeInPoints.height)) | |
{ | |
return(NO); | |
} |
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
const GLchar *blurVertex = | |
"attribute vec4 a_position;\n\ | |
attribute vec4 a_texCoord;\n\ | |
attribute vec4 a_color;\n\ | |
\n\ | |
uniform float texelWidthOffset;\n\ | |
uniform float texelHeightOffset;\n\ | |
\n\ | |
varying vec2 blurCoordinates[15];\n\ | |
varying lowp vec4 v_fragmentColor;\n\ |
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
diff --git a/WordPress/Classes/Utility/WPFeedbackGenerators.swift b/WordPress/Classes/Utility/WPFeedbackGenerators.swift | |
index 04a9ac9..228c9d2 100644 | |
--- a/WordPress/Classes/Utility/WPFeedbackGenerators.swift | |
+++ b/WordPress/Classes/Utility/WPFeedbackGenerators.swift | |
@@ -28,7 +28,11 @@ class WPNotificationFeedbackGenerator: NSObject { | |
return | |
} | |
- let generator = UINotificationFeedbackGenerator() | |
+ notificationOccurred(notificationType, withGenerator: UINotificationFeedbackGenerator()) |