This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#import <Foundation/Foundation.h> | |
typedef void (^completeBlock_t)(NSData *data); | |
typedef void (^errorBlock_t)(NSError *error); | |
@interface AsyncURLConnection : NSURLConnection | |
{ | |
NSMutableData *data_; | |
completeBlock_t completeBlock_; | |
errorBlock_t errorBlock_; |
#import "AsyncURLConnection.h" | |
@implementation AsyncURLConnection | |
+ (id)request:(NSString *)requestUrl completeBlock:(completeBlock_t)completeBlock errorBlock:(errorBlock_t)errorBlock | |
{ | |
return [[[self alloc] initWithRequest:requestUrl | |
completeBlock:completeBlock errorBlock:errorBlock] autorelease]; | |
} |
/* | |
File: Reachability.h | |
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
Version: 2.2 - ARCified | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
("Apple") in consideration of your agreement to the following terms, and your | |
use, installation, modification or redistribution of this Apple software |
A list of amazingly awesome PHP libraries that you should be using:
#Coy's Podcasts...
##Tech