Skip to content
Browse files

Merge branch 'bug/wStrict-selector-match' of https://github.com/jesse…

…dc/AFNetworking into jessedc-bug/wStrict-selector-match
  • Loading branch information...
2 parents e75dea4 + 474a940 commit fd00b0a5ad9367635cd9077477d8a77e4a94ac94 @mattt mattt committed Dec 26, 2012
View
2 AFNetworking/AFJSONRequestOperation.m
@@ -45,7 +45,7 @@ + (AFJSONRequestOperation *)JSONRequestOperationWithRequest:(NSURLRequest *)urlR
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, id JSON))success
failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON))failure
{
- AFJSONRequestOperation *requestOperation = [[self alloc] initWithRequest:urlRequest];
+ AFJSONRequestOperation *requestOperation = [(AFJSONRequestOperation *)[self alloc] initWithRequest:urlRequest];
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
if (success) {
success(operation.request, operation.response, responseObject);
View
2 AFNetworking/AFPropertyListRequestOperation.m
@@ -47,7 +47,7 @@ + (AFPropertyListRequestOperation *)propertyListRequestOperationWithRequest:(NSU
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, id propertyList))success
failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id propertyList))failure
{
- AFPropertyListRequestOperation *requestOperation = [[self alloc] initWithRequest:request];
+ AFPropertyListRequestOperation *requestOperation = [(AFPropertyListRequestOperation *)[self alloc] initWithRequest:request];
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
if (success) {
success(operation.request, operation.response, responseObject);
View
2 AFNetworking/AFURLConnectionOperation.m
@@ -691,7 +691,7 @@ - (void)encodeWithCoder:(NSCoder *)aCoder {
#pragma mark - NSCopying
- (id)copyWithZone:(NSZone *)zone {
- AFURLConnectionOperation *operation = [[[self class] allocWithZone:zone] initWithRequest:self.request];
+ AFURLConnectionOperation *operation = [(AFURLConnectionOperation *)[[self class] allocWithZone:zone] initWithRequest:self.request];
operation.uploadProgress = self.uploadProgress;
operation.downloadProgress = self.downloadProgress;
View
2 AFNetworking/AFXMLRequestOperation.m
@@ -52,7 +52,7 @@ + (AFXMLRequestOperation *)XMLParserRequestOperationWithRequest:(NSURLRequest *)
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSXMLParser *XMLParser))success
failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, NSXMLParser *XMLParser))failure
{
- AFXMLRequestOperation *requestOperation = [[self alloc] initWithRequest:urlRequest];
+ AFXMLRequestOperation *requestOperation = [(AFXMLRequestOperation *)[self alloc] initWithRequest:urlRequest];
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
if (success) {
success(operation.request, operation.response, responseObject);

0 comments on commit fd00b0a

Please sign in to comment.
Something went wrong with that request. Please try again.