mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Fix use of reserved 'class' keyword that breaks import into Objective-C++. fixes #355
Added basic spec file that imports the public headers into an Objective-C++ source file.
This commit is contained in:
@@ -277,11 +277,11 @@ static NSString* const RKManagedObjectStoreThreadDictionaryEntityCacheKey = @"RK
|
||||
|
||||
for (NSManagedObject* object in insertedObjects) {
|
||||
if ([object respondsToSelector:@selector(primaryKeyProperty)]) {
|
||||
Class class = [object class];
|
||||
NSString* primaryKey = [class performSelector:@selector(primaryKeyProperty)];
|
||||
Class theClass = [object class];
|
||||
NSString* primaryKey = [theClass performSelector:@selector(primaryKeyProperty)];
|
||||
id primaryKeyValue = [object valueForKey:primaryKey];
|
||||
|
||||
NSMutableDictionary* classCache = [threadDictionary objectForKey:class];
|
||||
NSMutableDictionary* classCache = [threadDictionary objectForKey:theClass];
|
||||
if (classCache && primaryKeyValue && [classCache objectForKey:primaryKeyValue] == nil) {
|
||||
[classCache setObject:object forKey:primaryKeyValue];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user