change ivar for consistency
Showing
1 changed file
with
7 additions
and
7 deletions
@@ -48,7 +48,7 @@ | @@ -48,7 +48,7 @@ | ||
48 | 48 | ||
49 | @implementation RMMapBoxSource | 49 | @implementation RMMapBoxSource |
50 | 50 | ||
51 | -@synthesize infoDictionary; | 51 | +@synthesize infoDictionary=_infoDictionary; |
52 | 52 | ||
53 | - (id)initWithTileJSON:(NSString *)tileJSON | 53 | - (id)initWithTileJSON:(NSString *)tileJSON |
54 | { | 54 | { |
@@ -59,13 +59,13 @@ | @@ -59,13 +59,13 @@ | ||
59 | { | 59 | { |
60 | if (self = [super init]) | 60 | if (self = [super init]) |
61 | { | 61 | { |
62 | - infoDictionary = (NSDictionary *)[[NSJSONSerialization JSONObjectWithData:[tileJSON dataUsingEncoding:NSUTF8StringEncoding] | ||
63 | - options:0 | ||
64 | - error:nil] retain]; | 62 | + _infoDictionary = (NSDictionary *)[[NSJSONSerialization JSONObjectWithData:[tileJSON dataUsingEncoding:NSUTF8StringEncoding] |
63 | + options:0 | ||
64 | + error:nil] retain]; | ||
65 | 65 | ||
66 | id dataObject; | 66 | id dataObject; |
67 | 67 | ||
68 | - if (mapView && (dataObject = [infoDictionary objectForKey:@"data"]) && dataObject) | 68 | + if (mapView && (dataObject = [_infoDictionary objectForKey:@"data"]) && dataObject) |
69 | { | 69 | { |
70 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^(void) | 70 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^(void) |
71 | { | 71 | { |
@@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
122 | if ( ! (self = [super init])) | 122 | if ( ! (self = [super init])) |
123 | return nil; | 123 | return nil; |
124 | 124 | ||
125 | - infoDictionary = [[NSDictionary dictionaryWithDictionary:info] retain]; | 125 | + _infoDictionary = [[NSDictionary dictionaryWithDictionary:info] retain]; |
126 | 126 | ||
127 | return self; | 127 | return self; |
128 | } | 128 | } |
@@ -163,7 +163,7 @@ | @@ -163,7 +163,7 @@ | ||
163 | 163 | ||
164 | - (void)dealloc | 164 | - (void)dealloc |
165 | { | 165 | { |
166 | - [infoDictionary release]; | 166 | + [_infoDictionary release]; |
167 | [super dealloc]; | 167 | [super dealloc]; |
168 | } | 168 | } |
169 | 169 |
-
Please register or login to post a comment