Declared in NSManagedObject+RKAdditions.h

Overview

Provides extensions to NSManagedObject for various common tasks.

Tasks

Inspecting Managed Object State

  • – hasBeenDeleted

    Determines if the receiver has been deleted from the persistent store and removed from the object graph.

  • – isNew

    Returns YES when an object has not been saved to the managed object context yet

Instance Methods

hasBeenDeleted

Determines if the receiver has been deleted from the persistent store and removed from the object graph.

- (BOOL)hasBeenDeleted

Return Value

YES if the object has been deleted from the persistent store, else NO.

Discussion

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.

Declared In

NSManagedObject+RKAdditions.h

isNew

Returns YES when an object has not been saved to the managed object context yet

- (BOOL)isNew

Declared In

NSManagedObject+RKAdditions.h