From 34b7d01af8f87fcadcc29abb87d2e323ed6597aa Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 13 Mar 2012 09:04:59 -0700 Subject: [PATCH] Updating documentation for AFURLConnectionOperation about implemented NSURLConnectionDelegate methods --- AFNetworking/AFURLConnectionOperation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.h b/AFNetworking/AFURLConnectionOperation.h index 946bfa7..1dc96d0 100644 --- a/AFNetworking/AFURLConnectionOperation.h +++ b/AFNetworking/AFURLConnectionOperation.h @@ -58,11 +58,11 @@ extern NSString * const AFNetworkingOperationDidFinishNotification; - `connection:didFailWithError:` - `connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:` - `connection:willCacheResponse:` + - `connection:canAuthenticateAgainstProtectionSpace:` + - `connection:didReceiveAuthenticationChallenge:` If any of these methods are overriden in a subclass, they _must_ call the `super` implementation first. - - Notably, `AFHTTPRequestOperation` does not implement any of the authentication challenge-related `NSURLConnection` delegate methods, and are thus safe to override without a call to `super`. - + ## Class Constructors Class constructors, or methods that return an unowned (zero retain count) instance, are the preferred way for subclasses to encapsulate any particular logic for handling the setup or parsing of response data. For instance, `AFJSONRequestOperation` provides `JSONRequestOperationWithRequest:success:failure:`, which takes block arguments, whose parameter on for a successful request is the JSON object initialized from the `response data`.