Files
RestKit/Code/CoreData/NSManagedObject+RKAdditions.h
Jawwad Ahmad 8cbdb5f7ed Trailing whitespace cleanup from files in the Code directory.
Used the following command from within the Code dir:
git ls-files *.m *.h *.json | xargs /usr/bin/sed -i '' -E 's/[[:space:]]*$//'
2012-09-02 12:51:45 -04:00

40 lines
948 B
Objective-C

//
// NSManagedObject+RKAdditions.h
// RestKit
//
// Created by Blake Watters on 3/14/12.
// Copyright (c) 2009-2012 RestKit. All rights reserved.
//
#import <CoreData/CoreData.h>
@class RKManagedObjectStore, RKEntityMapping;
/**
Provides extensions to NSManagedObject for various common tasks.
*/
@interface NSManagedObject (RKAdditions)
/**
The receiver's managed object store.
*/
- (RKManagedObjectStore *)managedObjectStore;
/**
Determines if the receiver has been deleted from the persistent store
and removed from the object graph.
Unlike isDeleted, will return YES after a save event or if the managed object was deleted
in another managed object context that was then merged to the persistent store.
@return YES if the object has been deleted from the persistent store, else NO.
*/
- (BOOL)hasBeenDeleted;
/**
* Returns YES when an object has not been saved to the managed object context yet
*/
- (BOOL)isNew;
@end