mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-03 22:49:50 +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
449 B
Objective-C
24 lines
449 B
Objective-C
//
|
|
// NSManagedObject+RKAdditions.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 3/14/12.
|
|
// Copyright (c) 2012 RestKit. All rights reserved.
|
|
//
|
|
|
|
#import <CoreData/CoreData.h>
|
|
|
|
@class RKManagedObjectStore, RKManagedObjectMapping;
|
|
|
|
/**
|
|
Provides extensions to NSManagedObject for various common tasks.
|
|
*/
|
|
@interface NSManagedObject (RKAdditions)
|
|
|
|
/**
|
|
The receiver's managed object store.
|
|
*/
|
|
- (RKManagedObjectStore *)managedObjectStore;
|
|
|
|
@end
|