mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-03 17:55:10 +08:00
classes to eliminate issues with duplicated objects. closes #611, #612, #613, #618 * NSEntityDescription is now aware of the primaryKeyAttribute. Can be configured via Interface Builder within Xcode or programatically. * Added findByPrimaryKey: interface to the Core Data extensions. * Relaxed dependencies on RKManagedObjectMapping across the system now that primaryKey is available without a reference to the mapping.
24 lines
472 B
Objective-C
24 lines
472 B
Objective-C
//
|
|
// NSManagedObjectContext+RKAdditions.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 3/14/12.
|
|
// Copyright (c) 2012 RestKit. All rights reserved.
|
|
//
|
|
|
|
#import <CoreData/CoreData.h>
|
|
|
|
@class RKManagedObjectStore;
|
|
|
|
/**
|
|
Provides extensions to NSManagedObjectContext for various common tasks.
|
|
*/
|
|
@interface NSManagedObjectContext (RKAdditions)
|
|
|
|
/**
|
|
The receiver's managed object store.
|
|
*/
|
|
@property (nonatomic, assign) RKManagedObjectStore *managedObjectStore;
|
|
|
|
@end
|