Eliminate unnecessary manual tracking of inserted objects in favor of MOC insertedObjects:

This commit is contained in:
Blake Watters
2012-08-22 18:54:23 -04:00
parent af36e72ac2
commit 5852d7c997
3 changed files with 22 additions and 64 deletions

View File

@@ -43,31 +43,6 @@
*/
@property (nonatomic, retain) NSOperationQueue *operationQueue;
/**
A Boolean value determing if the receiver keeps tracks of inserted objects.
Tracking inserted objects is useful in mapping operations that are performed on a background thread
but intend to return results to another thread. In these cases, it is necessary to obtain permanent object
ID's for all inserted objects so that they may be reliably fetched across NSManagedObjectContext instances.
Managed objects inserted into a context that is not directly related to the persistent store coordinator (i.e.
child managed object contexts) do not have their managed object ID's updtated from temporary to persistent when
saved to the persistent store through a parent context.
**Default**: NO
*/
@property (nonatomic, assign) BOOL tracksInsertedObjects;
/**
Returns the list of managed objects inserted into the receiver's managed object context during the course of
a managed object mapping operation.
*/
@property (nonatomic, readonly) NSArray *insertedObjects;
/**
Clears the list of inserted objects tracked by the receiver.
*/
- (void)clearInsertedObjects;
/**
Initializes the receiver with a given managed object context and managed object cache.