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.

    property
  •   isNew

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

    property

Properties

hasBeenDeleted

@property (nonatomic, readonly) BOOL hasBeenDeleted
Discussion

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 Value

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

Declared In

NSManagedObject+RKAdditions.h

isNew

@property (nonatomic, readonly) BOOL isNew
Discussion

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

Declared In

NSManagedObject+RKAdditions.h