Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replacing existing property ownership values of retain with strong

  • Loading branch information...
commit e8b3e27043f386fae4d649b4687b28f19b48c4fb 1 parent cd2171c
Mattt Thompson mattt authored
26 AFNetworking/AFHTTPClient.m
View
@@ -90,13 +90,12 @@
#pragma mark -
@interface AFQueryStringPair : NSObject
-@property (readwrite, nonatomic, retain) id field;
-@property (readwrite, nonatomic, retain) id value;
+@property (readwrite, nonatomic, strong) id field;
+@property (readwrite, nonatomic, strong) id value;
- (id)initWithField:(id)field value:(id)value;
- (NSString *)URLEncodedStringValueWithEncoding:(NSStringEncoding)stringEncoding;
-
@end
@implementation AFQueryStringPair
@@ -185,12 +184,10 @@ - (NSString *)URLEncodedStringValueWithEncoding:(NSStringEncoding)stringEncoding
}
@interface AFStreamingMultipartFormData : NSObject <AFMultipartFormData>
-
- (id)initWithURLRequest:(NSMutableURLRequest *)request
stringEncoding:(NSStringEncoding)encoding;
- (NSMutableURLRequest *)requestByFinalizingMultipartFormData;
-
@end
#pragma mark -
@@ -733,10 +730,9 @@ - (id)copyWithZone:(NSZone *)zone {
NSTimeInterval const kAFUploadStream3GSuggestedDelay = 0.2;
@interface AFHTTPBodyPart : NSObject
-
@property (nonatomic, assign) NSStringEncoding stringEncoding;
-@property (nonatomic, retain) NSDictionary *headers;
-@property (nonatomic, retain) NSInputStream *inputStream;
+@property (nonatomic, strong) NSDictionary *headers;
+@property (nonatomic, strong) NSInputStream *inputStream;
@property (nonatomic, assign) unsigned long long bodyContentLength;
@property (nonatomic, assign) BOOL hasInitialBoundary;
@@ -746,11 +742,9 @@ @interface AFHTTPBodyPart : NSObject
@property (readonly) unsigned long long contentLength;
- (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)length;
-
@end
@interface AFMultipartBodyStream : NSInputStream <NSStreamDelegate>
-
@property (nonatomic, assign) NSUInteger numberOfBytesInPacket;
@property (nonatomic, assign) NSTimeInterval delay;
@property (readonly) unsigned long long contentLength;
@@ -759,14 +753,13 @@ @interface AFMultipartBodyStream : NSInputStream <NSStreamDelegate>
- (id)initWithStringEncoding:(NSStringEncoding)encoding;
- (void)setInitialAndFinalBoundaries;
- (void)appendHTTPBodyPart:(AFHTTPBodyPart *)bodyPart;
-
@end
#pragma mark -
@interface AFStreamingMultipartFormData ()
@property (readwrite, nonatomic, copy) NSMutableURLRequest *request;
-@property (readwrite, nonatomic, retain) AFMultipartBodyStream *bodyStream;
+@property (readwrite, nonatomic, strong) AFMultipartBodyStream *bodyStream;
@property (readwrite, nonatomic, assign) NSStringEncoding stringEncoding;
@end
@@ -897,12 +890,12 @@ - (NSMutableURLRequest *)requestByFinalizingMultipartFormData {
@interface AFMultipartBodyStream ()
@property (nonatomic, assign) NSStreamStatus streamStatus;
-@property (nonatomic, retain) NSError *streamError;
+@property (nonatomic, strong) NSError *streamError;
@property (nonatomic, assign) NSStringEncoding stringEncoding;
-@property (nonatomic, retain) NSMutableArray *HTTPBodyParts;
-@property (nonatomic, retain) NSEnumerator *HTTPBodyPartEnumerator;
-@property (nonatomic, retain) AFHTTPBodyPart *currentHTTPBodyPart;
+@property (nonatomic, strong) NSMutableArray *HTTPBodyParts;
+@property (nonatomic, strong) NSEnumerator *HTTPBodyPartEnumerator;
+@property (nonatomic, strong) AFHTTPBodyPart *currentHTTPBodyPart;
@end
@implementation AFMultipartBodyStream
@@ -1056,7 +1049,6 @@ @interface AFHTTPBodyPart () {
}
- (BOOL)transitionToNextPhase;
-
@end
@implementation AFHTTPBodyPart
4 AFNetworking/AFImageRequestOperation.h
View
@@ -55,9 +55,9 @@
An image constructed from the response data. If an error occurs during the request, `nil` will be returned, and the `error` property will be set to the error.
*/
#if __IPHONE_OS_VERSION_MIN_REQUIRED
-@property (readonly, nonatomic) UIImage *responseImage;
+@property (readonly, nonatomic, strong) UIImage *responseImage;
#elif __MAC_OS_X_VERSION_MIN_REQUIRED
-@property (readonly, nonatomic, retain) NSImage *responseImage;
+@property (readonly, nonatomic, strong) NSImage *responseImage;
#endif
#if __IPHONE_OS_VERSION_MIN_REQUIRED
4 AFNetworking/AFImageRequestOperation.m
View
@@ -33,9 +33,9 @@ static dispatch_queue_t image_request_operation_processing_queue() {
@interface AFImageRequestOperation ()
#if __IPHONE_OS_VERSION_MIN_REQUIRED
-@property (readwrite, nonatomic) UIImage *responseImage;
+@property (readwrite, nonatomic, strong) UIImage *responseImage;
#elif __MAC_OS_X_VERSION_MIN_REQUIRED
-@property (readwrite, nonatomic, retain) NSImage *responseImage;
+@property (readwrite, nonatomic, strong) NSImage *responseImage;
#endif
@end
2  AFNetworking/AFNetworkActivityIndicatorManager.m
View
@@ -29,7 +29,7 @@
@interface AFNetworkActivityIndicatorManager ()
@property (readwrite, assign) NSInteger activityCount;
-@property (readwrite, nonatomic, retain) NSTimer *activityIndicatorVisibilityTimer;
+@property (readwrite, nonatomic, strong) NSTimer *activityIndicatorVisibilityTimer;
@property (readonly, getter = isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible;
- (void)updateNetworkActivityIndicatorVisibility;
4 AFNetworking/AFXMLRequestOperation.h
View
@@ -48,13 +48,13 @@
/**
An `NSXMLParser` object constructed from the response data.
*/
-@property (readonly, nonatomic) NSXMLParser *responseXMLParser;
+@property (readonly, nonatomic, strong) NSXMLParser *responseXMLParser;
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
/**
An `NSXMLDocument` object constructed from the response data. If an error occurs while parsing, `nil` will be returned, and the `error` property will be set to the error.
*/
-@property (readonly, nonatomic, retain) NSXMLDocument *responseXMLDocument;
+@property (readonly, nonatomic, strong) NSXMLDocument *responseXMLDocument;
#endif
/**
6 AFNetworking/AFXMLRequestOperation.m
View
@@ -34,11 +34,11 @@ static dispatch_queue_t xml_request_operation_processing_queue() {
}
@interface AFXMLRequestOperation ()
-@property (readwrite, nonatomic) NSXMLParser *responseXMLParser;
+@property (readwrite, nonatomic, strong) NSXMLParser *responseXMLParser;
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
-@property (readwrite, nonatomic, retain) NSXMLDocument *responseXMLDocument;
+@property (readwrite, nonatomic, strong) NSXMLDocument *responseXMLDocument;
#endif
-@property (readwrite, nonatomic) NSError *XMLError;
+@property (readwrite, nonatomic, strong) NSError *XMLError;
@end
@implementation AFXMLRequestOperation
2  AFNetworking/UIImageView+AFNetworking.m
View
@@ -37,7 +37,7 @@ - (void)cacheImage:(UIImage *)image
static char kAFImageRequestOperationObjectKey;
@interface UIImageView (_AFNetworking)
-@property (readwrite, nonatomic, retain, setter = af_setImageRequestOperation:) AFImageRequestOperation *af_imageRequestOperation;
+@property (readwrite, nonatomic, strong, setter = af_setImageRequestOperation:) AFImageRequestOperation *af_imageRequestOperation;
@end
@implementation UIImageView (_AFNetworking)
Please sign in to comment.
Something went wrong with that request. Please try again.