Permalink
Browse files

updateing AFNetworking and switching to ARC and native JSON parsing

  • Loading branch information...
1 parent c2dd142 commit 3020cd3e0857d64e5d13b7ed7a34646a31b57e85 @kgn committed Oct 4, 2012
View
@@ -1,6 +1,3 @@
-[submodule "Spectttator/JSONKit"]
- path = Spectttator/JSONKit
- url = https://github.com/johnezang/JSONKit.git
[submodule "Spectttator/AFNetworking"]
path = Spectttator/AFNetworking
url = https://github.com/AFNetworking/AFNetworking.git
@@ -27,10 +27,6 @@
7393682B14D284AD00484411 /* AFJSONRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 7393680F14D284AD00484411 /* AFJSONRequestOperation.h */; };
7393682C14D284AD00484411 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 7393681014D284AD00484411 /* AFJSONRequestOperation.m */; };
7393682D14D284AD00484411 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 7393681014D284AD00484411 /* AFJSONRequestOperation.m */; };
- 7393682E14D284AD00484411 /* AFJSONUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 7393681114D284AD00484411 /* AFJSONUtilities.h */; };
- 7393682F14D284AD00484411 /* AFJSONUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 7393681114D284AD00484411 /* AFJSONUtilities.h */; };
- 7393683014D284AD00484411 /* AFJSONUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 7393681214D284AD00484411 /* AFJSONUtilities.m */; };
- 7393683114D284AD00484411 /* AFJSONUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 7393681214D284AD00484411 /* AFJSONUtilities.m */; };
7393683214D284AD00484411 /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7393681314D284AD00484411 /* AFNetworkActivityIndicatorManager.h */; };
7393683314D284AD00484411 /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7393681314D284AD00484411 /* AFNetworkActivityIndicatorManager.h */; };
7393683414D284AD00484411 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7393681414D284AD00484411 /* AFNetworkActivityIndicatorManager.m */; };
@@ -82,10 +78,6 @@
73C01C9E13C2EB0B00A8ECDB /* SPMethods.h in Headers */ = {isa = PBXBuildFile; fileRef = 739A44A613B8642B00E7783A /* SPMethods.h */; settings = {ATTRIBUTES = (Public, ); }; };
73C01CAE13C2EBBC00A8ECDB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C01CAD13C2EBBC00A8ECDB /* UIKit.framework */; };
73C01CE413C2EDA000A8ECDB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73C01CE213C2ED9800A8ECDB /* Foundation.framework */; };
- 73C034781476554400800FC3 /* JSONKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 73E902A714764DFF006EB9E4 /* JSONKit.h */; settings = {ATTRIBUTES = (); }; };
- 73C034791476554900800FC3 /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = 73E902A814764DFF006EB9E4 /* JSONKit.m */; };
- 73E902AA14764DFF006EB9E4 /* JSONKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 73E902A714764DFF006EB9E4 /* JSONKit.h */; };
- 73E902AC14764DFF006EB9E4 /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = 73E902A814764DFF006EB9E4 /* JSONKit.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@@ -105,8 +97,6 @@
7393680E14D284AD00484411 /* AFImageRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFImageRequestOperation.m; sourceTree = "<group>"; };
7393680F14D284AD00484411 /* AFJSONRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFJSONRequestOperation.h; sourceTree = "<group>"; };
7393681014D284AD00484411 /* AFJSONRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFJSONRequestOperation.m; sourceTree = "<group>"; };
- 7393681114D284AD00484411 /* AFJSONUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFJSONUtilities.h; sourceTree = "<group>"; };
- 7393681214D284AD00484411 /* AFJSONUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFJSONUtilities.m; sourceTree = "<group>"; };
7393681314D284AD00484411 /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkActivityIndicatorManager.h; sourceTree = "<group>"; };
7393681414D284AD00484411 /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkActivityIndicatorManager.m; sourceTree = "<group>"; };
7393681514D284AD00484411 /* AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworking.h; sourceTree = "<group>"; };
@@ -134,8 +124,6 @@
73C01CAC13C2EB4B00A8ECDB /* Spectttator-iOS-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Spectttator-iOS-Prefix.pch"; sourceTree = "<group>"; };
73C01CAD13C2EBBC00A8ECDB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
73C01CE213C2ED9800A8ECDB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
- 73E902A714764DFF006EB9E4 /* JSONKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSONKit.h; sourceTree = "<group>"; };
- 73E902A814764DFF006EB9E4 /* JSONKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSONKit.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -205,7 +193,6 @@
739A449F13B85C9A00E7783A /* SPPagination.m */,
739A44A613B8642B00E7783A /* SPMethods.h */,
739A44A713B8642B00E7783A /* SPMethods.m */,
- 73E902A514764DFF006EB9E4 /* JSONKit */,
7393680814D284AD00484411 /* AFNetworking */,
73698B7813B681F400922D1A /* Supporting Files */,
);
@@ -233,8 +220,6 @@
7393680E14D284AD00484411 /* AFImageRequestOperation.m */,
7393680F14D284AD00484411 /* AFJSONRequestOperation.h */,
7393681014D284AD00484411 /* AFJSONRequestOperation.m */,
- 7393681114D284AD00484411 /* AFJSONUtilities.h */,
- 7393681214D284AD00484411 /* AFJSONUtilities.m */,
7393681314D284AD00484411 /* AFNetworkActivityIndicatorManager.h */,
7393681414D284AD00484411 /* AFNetworkActivityIndicatorManager.m */,
7393681514D284AD00484411 /* AFNetworking.h */,
@@ -260,15 +245,6 @@
name = "iOS Frameworks";
sourceTree = "<group>";
};
- 73E902A514764DFF006EB9E4 /* JSONKit */ = {
- isa = PBXGroup;
- children = (
- 73E902A714764DFF006EB9E4 /* JSONKit.h */,
- 73E902A814764DFF006EB9E4 /* JSONKit.m */,
- );
- path = JSONKit;
- sourceTree = "<group>";
- };
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@@ -284,12 +260,10 @@
73698BAE13B6839500922D1A /* SPRequest.h in Headers */,
739A44A813B8642B00E7783A /* SPMethods.h in Headers */,
73A29482149F477500F25E50 /* SPObject.h in Headers */,
- 73E902AA14764DFF006EB9E4 /* JSONKit.h in Headers */,
7393681E14D284AD00484411 /* AFHTTPClient.h in Headers */,
7393682214D284AD00484411 /* AFHTTPRequestOperation.h in Headers */,
7393682614D284AD00484411 /* AFImageRequestOperation.h in Headers */,
7393682A14D284AD00484411 /* AFJSONRequestOperation.h in Headers */,
- 7393682E14D284AD00484411 /* AFJSONUtilities.h in Headers */,
7393683214D284AD00484411 /* AFNetworkActivityIndicatorManager.h in Headers */,
7393683614D284AD00484411 /* AFNetworking.h in Headers */,
7393683814D284AD00484411 /* AFPropertyListRequestOperation.h in Headers */,
@@ -311,12 +285,10 @@
73C01C9D13C2EB0B00A8ECDB /* SPPagination.h in Headers */,
73C01C9E13C2EB0B00A8ECDB /* SPMethods.h in Headers */,
73A29486149F4AC700F25E50 /* SPObject.h in Headers */,
- 73C034781476554400800FC3 /* JSONKit.h in Headers */,
7393681F14D284AD00484411 /* AFHTTPClient.h in Headers */,
7393682314D284AD00484411 /* AFHTTPRequestOperation.h in Headers */,
7393682714D284AD00484411 /* AFImageRequestOperation.h in Headers */,
7393682B14D284AD00484411 /* AFJSONRequestOperation.h in Headers */,
- 7393682F14D284AD00484411 /* AFJSONUtilities.h in Headers */,
7393683314D284AD00484411 /* AFNetworkActivityIndicatorManager.h in Headers */,
7393683714D284AD00484411 /* AFNetworking.h in Headers */,
7393683914D284AD00484411 /* AFPropertyListRequestOperation.h in Headers */,
@@ -401,13 +373,11 @@
739A44A113B85C9A00E7783A /* SPPagination.m in Sources */,
739A44A913B8642B00E7783A /* SPMethods.m in Sources */,
739A44AF13B86A8C00E7783A /* SPComment.m in Sources */,
- 73E902AC14764DFF006EB9E4 /* JSONKit.m in Sources */,
73A29483149F477500F25E50 /* SPObject.m in Sources */,
7393682014D284AD00484411 /* AFHTTPClient.m in Sources */,
7393682414D284AD00484411 /* AFHTTPRequestOperation.m in Sources */,
7393682814D284AD00484411 /* AFImageRequestOperation.m in Sources */,
7393682C14D284AD00484411 /* AFJSONRequestOperation.m in Sources */,
- 7393683014D284AD00484411 /* AFJSONUtilities.m in Sources */,
7393683414D284AD00484411 /* AFNetworkActivityIndicatorManager.m in Sources */,
7393683A14D284AD00484411 /* AFPropertyListRequestOperation.m in Sources */,
7393683E14D284AD00484411 /* AFURLConnectionOperation.m in Sources */,
@@ -427,12 +397,10 @@
73C01C8913C2EAF700A8ECDB /* SPComment.m in Sources */,
73C01C8A13C2EAF700A8ECDB /* SPPagination.m in Sources */,
73C01C8B13C2EAF700A8ECDB /* SPMethods.m in Sources */,
- 73C034791476554900800FC3 /* JSONKit.m in Sources */,
7393682114D284AD00484411 /* AFHTTPClient.m in Sources */,
7393682514D284AD00484411 /* AFHTTPRequestOperation.m in Sources */,
7393682914D284AD00484411 /* AFImageRequestOperation.m in Sources */,
7393682D14D284AD00484411 /* AFJSONRequestOperation.m in Sources */,
- 7393683114D284AD00484411 /* AFJSONUtilities.m in Sources */,
7393683514D284AD00484411 /* AFNetworkActivityIndicatorManager.m in Sources */,
7393683B14D284AD00484411 /* AFPropertyListRequestOperation.m in Sources */,
7393683F14D284AD00484411 /* AFURLConnectionOperation.m in Sources */,
@@ -490,6 +458,7 @@
73698B8113B681F400922D1A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application";
COMBINE_HIDPI_IMAGES = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -507,6 +476,7 @@
73698B8213B681F400922D1A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application";
COMBINE_HIDPI_IMAGES = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -525,6 +495,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
DSTROOT = /tmp/Spectttator_iOS.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Spectttator/Spectttator-iOS-Prefix.pch";
@@ -539,6 +510,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
DSTROOT = /tmp/Spectttator_iOS.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Spectttator/Spectttator-iOS-Prefix.pch";
Submodule AFNetworking updated 35 files
+6 −4 AFNetworking.podspec
+177 −131 AFNetworking/AFHTTPClient.h
+546 −262 AFNetworking/AFHTTPClient.m
+17 −12 AFNetworking/AFHTTPRequestOperation.h
+119 −75 AFNetworking/AFHTTPRequestOperation.m
+2 −6 AFNetworking/AFImageRequestOperation.h
+13 −15 AFNetworking/AFImageRequestOperation.m
+2 −2 AFNetworking/AFJSONRequestOperation.h
+12 −15 AFNetworking/AFJSONRequestOperation.m
+0 −26 AFNetworking/AFJSONUtilities.h
+0 −217 AFNetworking/AFJSONUtilities.m
+8 −1 AFNetworking/AFNetworkActivityIndicatorManager.h
+6 −8 AFNetworking/AFNetworkActivityIndicatorManager.m
+1 −1 AFNetworking/AFPropertyListRequestOperation.h
+10 −12 AFNetworking/AFPropertyListRequestOperation.m
+58 −68 AFNetworking/AFURLConnectionOperation.h
+39 −54 AFNetworking/AFURLConnectionOperation.m
+4 −4 AFNetworking/AFXMLRequestOperation.h
+16 −24 AFNetworking/AFXMLRequestOperation.m
+2 −2 AFNetworking/UIImageView+AFNetworking.h
+5 −5 AFNetworking/UIImageView+AFNetworking.m
+14 −0 CHANGES
+12 −0 Example/AFNetworking Example.entitlements
+63 −65 Example/AFNetworking Mac Example.xcodeproj/project.pbxproj
+20 −22 Example/AFNetworking iOS Example.xcodeproj/project.pbxproj
+1 −1 Example/AppDelegate.h
+15 −15 Example/AppDelegate.m
+1 −7 Example/Classes/Models/Tweet.m
+1 −1 Example/Classes/Models/User.h
+3 −3 Example/Classes/Models/User.m
+ Example/Icon.png
+ Example/Icon@2x.png
+1 −0 Example/Prefix.pch
+3 −3 Example/iOS-Info.plist
+15 −18 README.md
Submodule JSONKit deleted from 821576
View
@@ -33,12 +33,12 @@
@interface SPComment : SPObject
/// The text of the comment.
-@property (copy, nonatomic, readonly) NSString *body;
+@property (strong, nonatomic, readonly) NSString *body;
/// The number of players who liked the comment.
@property (nonatomic, readonly) NSUInteger likesCount;
/** The player who posted the comment.
@see SPPlayer
*/
-@property (retain, nonatomic, readonly) SPPlayer *player;
+@property (strong, nonatomic, readonly) SPPlayer *player;
@end
View
@@ -10,21 +10,21 @@
#import "SPPlayer.h"
@interface SPComment()
-@property (copy, nonatomic, readwrite) NSString *body;
+@property (strong, nonatomic, readwrite) NSString *body;
@property (nonatomic, readwrite) NSUInteger likesCount;
-@property (retain, nonatomic, readwrite) SPPlayer *player;
+@property (strong, nonatomic, readwrite) SPPlayer *player;
@end
@implementation SPComment
- (id)initWithDictionary:(NSDictionary *)dictionary{
if((self = [super initWithDictionary:dictionary])){
- self.body = [[dictionary stringSafelyFromKey:@"body"] retain];
+ self.body = [dictionary stringSafelyFromKey:@"body"];
self.likesCount = [dictionary uintSafelyFromKey:@"likes_count"];
NSDictionary *player = [dictionary objectSafelyFromKey:@"player"];
if(player != nil){
- self.player = [[[SPPlayer alloc] initWithDictionary:player] autorelease];
+ self.player = [[SPPlayer alloc] initWithDictionary:player];
}
}
@@ -36,10 +36,5 @@ - (NSString *)description{
[self class], (unsigned long)self.identifier, self.player.username, self.body];
}
-- (void)dealloc{
- [_body release];
- [_player release];
- [super dealloc];
-}
@end
View
@@ -76,11 +76,9 @@ + (void)requestPlayersWithURL:(NSURL *)url
@autoreleasepool{
SPPlayer *player = [[SPPlayer alloc] initWithDictionary:playerData];
[mplayers addObject:player];
- [player release];
}
}
if([mplayers count] == 0){
- [mplayers release];
mplayers = nil;
}
if(runOnMainThread){
@@ -90,9 +88,6 @@ + (void)requestPlayersWithURL:(NSURL *)url
}else{
block(mplayers, [SPPagination paginationWithDictionary:json]);
}
- if(mplayers != nil){
- [mplayers release];
- }
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON){
if(runOnMainThread){
dispatch_async(dispatch_get_main_queue(), ^{
@@ -116,11 +111,9 @@ + (void)requestShotsWithURL:(NSURL *)url
@autoreleasepool{
SPShot *shot = [[SPShot alloc] initWithDictionary:shotData];
[mshots addObject:shot];
- [shot release];
}
}
if([mshots count] == 0){
- [mshots release];
mshots = nil;
}
if(runOnMainThread){
@@ -130,9 +123,6 @@ + (void)requestShotsWithURL:(NSURL *)url
}else{
block(mshots, [SPPagination paginationWithDictionary:json]);
}
- if(mshots != nil){
- [mshots release];
- }
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON){
if(runOnMainThread){
dispatch_async(dispatch_get_main_queue(), ^{
@@ -156,11 +146,9 @@ + (void)requestCommentsWithURL:(NSURL *)url
@autoreleasepool{
SPComment *comment = [[SPComment alloc] initWithDictionary:commentData];
[mcomments addObject:comment];
- [comment release];
}
}
if([mcomments count] == 0){
- [mcomments release];
mcomments = nil;
}
if(runOnMainThread){
@@ -170,9 +158,6 @@ + (void)requestCommentsWithURL:(NSURL *)url
}else{
block(mcomments, [SPPagination paginationWithDictionary:json]);
}
- if(mcomments != nil){
- [mcomments release];
- }
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON){
if(runOnMainThread){
dispatch_async(dispatch_get_main_queue(), ^{
@@ -213,7 +198,7 @@ + (void)requestDataWithURL:(NSURL *)url
runOnMainThread:(BOOL)runOnMainThread
withBlock:(void (^)(NSData *data))block{
AFHTTPRequestOperation *operation =
- [[[AFHTTPRequestOperation alloc] initWithRequest:[NSURLRequest requestWithURL:url]] autorelease];
+ [[AFHTTPRequestOperation alloc] initWithRequest:[NSURLRequest requestWithURL:url]];
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject){
if(runOnMainThread){
dispatch_async(dispatch_get_main_queue(), ^{
View
@@ -12,9 +12,9 @@
@interface SPObject : NSObject
/// The unique id of the object.
-@property (readonly, nonatomic, readonly) NSUInteger identifier;
+@property (nonatomic, readonly) NSUInteger identifier;
/// The date the object was created.
-@property (readonly, nonatomic, readonly) NSDate *createdAt;
+@property (strong, nonatomic, readonly) NSDate *createdAt;
///----------------------------
/// @name Initializing a SPObject Object
View
@@ -9,8 +9,8 @@
#import "SPObject.h"
@interface SPObject()
-@property (readonly, nonatomic, readwrite) NSUInteger identifier;
-@property (readonly, nonatomic, readwrite) NSDate *createdAt;
+@property (nonatomic, readwrite) NSUInteger identifier;
+@property (strong, nonatomic, readwrite) NSDate *createdAt;
@end
@implementation SPObject
@@ -22,8 +22,7 @@ - (id)initWithDictionary:(NSDictionary *)dictionary{
if(createdAt != nil){
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy/MM/dd HH:mm:ss ZZZZ"];
- self.createdAt = [[formatter dateFromString:createdAt] retain];
- [formatter release];
+ self.createdAt = [formatter dateFromString:createdAt];
}
}
@@ -41,9 +40,5 @@ - (BOOL)isEqual:(id)object{
return NO;
}
-- (void)dealloc{
- [_createdAt release];
- [super dealloc];
-}
@end
@@ -41,7 +41,7 @@ + (NSDictionary *)page:(NSUInteger)page perPage:(NSUInteger)perPage{
}
+ (id)paginationWithDictionary:(NSDictionary *)dictionary{
- return [[[SPPagination alloc] initWithDictionary:dictionary] autorelease];
+ return [[SPPagination alloc] initWithDictionary:dictionary];
}
- (id)initWithDictionary:(NSDictionary *)dictionary{
View
@@ -33,17 +33,17 @@
@interface SPPlayer : SPObject
/// The real name of the player.
-@property (copy, nonatomic, readonly) NSString *name;
+@property (strong, nonatomic, readonly) NSString *name;
/// The username of the player.
-@property (copy, nonatomic, readonly) NSString *username;
+@property (strong, nonatomic, readonly) NSString *username;
/// The url of the player's profile.
-@property (retain, nonatomic, readonly) NSURL *url;
+@property (strong, nonatomic, readonly) NSURL *url;
/// The url of the player's avatar.
-@property (retain, nonatomic, readonly) NSURL *avatarUrl;
+@property (strong, nonatomic, readonly) NSURL *avatarUrl;
/// The location of the player.
-@property (copy, nonatomic, readonly) NSString *location;
+@property (strong, nonatomic, readonly) NSString *location;
/// The player's twitter name.
-@property (copy, nonatomic, readonly) NSString *twitterScreenName;
+@property (strong, nonatomic, readonly) NSString *twitterScreenName;
/** The id of this player who drafted this player.
If this player was not drafted the value is `NSNotFound`.
Oops, something went wrong.

0 comments on commit 3020cd3

Please sign in to comment.