Declared in NSManagedObjectContext+MagicalObserving.h

Overview

Category methods to aid in observing changes in other contexts.

Tasks

Instance Methods

MR_observeContext:

- (void)MR_observeContext:(NSManagedObjectContext *)otherContext
Discussion

Merge changes from another context into self.

Parameters

otherContext

Managed object context to observe.

Availability

Available in v2.0 and later.

Declared In

NSManagedObjectContext+MagicalObserving.h

MR_observeContextOnMainThread:

- (void)MR_observeContextOnMainThread:(NSManagedObjectContext *)otherContext
Discussion

Merges changes from another context into self on the main thread.

Parameters

otherContext

Managed object context to observe.

Availability

Available in v2.0 and later.

Declared In

NSManagedObjectContext+MagicalObserving.h

MR_observeiCloudChangesInCoordinator:

- (void)MR_observeiCloudChangesInCoordinator:(NSPersistentStoreCoordinator *)coordinator
Discussion

Merges changes from the supplied persistent store coordinator into self in response to changes from iCloud.

Parameters

coordinator

Persistent store coordinator

Availability

Available in v2.0 and later.

Declared In

NSManagedObjectContext+MagicalObserving.h

MR_stopObservingContext:

- (void)MR_stopObservingContext:(NSManagedObjectContext *)otherContext
Discussion

Stops merging changes from the supplied context into self.

Parameters

otherContext

Managed object context to stop observing.

Availability

Available in v2.0 and later.

Declared In

NSManagedObjectContext+MagicalObserving.h

MR_stopObservingiCloudChangesInCoordinator:

- (void)MR_stopObservingiCloudChangesInCoordinator:(NSPersistentStoreCoordinator *)coordinator
Discussion

Stops observation and merging of changes from the supplied persistent store coordinator in response to changes from iCloud.

Parameters

coordinator

Persistent store coordinator

Availability

Available in v2.0 and later.

Declared In

NSManagedObjectContext+MagicalObserving.h