Convert RestKit to ARC

This commit is contained in:
Blake Watters
2012-08-28 17:34:58 -04:00
parent 274478448d
commit ce6b0829e4
81 changed files with 2615 additions and 3128 deletions

View File

@@ -10,7 +10,7 @@
#import "RKEntityByAttributeCache.h"
@interface RKEntityCache ()
@property (nonatomic, retain) NSMutableSet *attributeCaches;
@property (nonatomic, strong) NSMutableSet *attributeCaches;
@end
@implementation RKEntityCache
@@ -23,7 +23,7 @@
NSAssert(context, @"Cannot initialize entity cache with a nil context");
self = [super init];
if (self) {
_managedObjectContext = [context retain];
_managedObjectContext = context;
_attributeCaches = [[NSMutableSet alloc] init];
}
@@ -35,12 +35,6 @@
return [self initWithManagedObjectContext:nil];
}
- (void)dealloc
{
[_managedObjectContext release];
[_attributeCaches release];
[super dealloc];
}
- (void)cacheObjectsForEntity:(NSEntityDescription *)entity byAttribute:(NSString *)attributeName
{
@@ -53,7 +47,6 @@
attributeCache = [[RKEntityByAttributeCache alloc] initWithEntity:entity attribute:attributeName managedObjectContext:self.managedObjectContext];
[attributeCache load];
[self.attributeCaches addObject:attributeCache];
[attributeCache release];
}
}