Contents

insertedObjects

The set of objects that have been inserted into the context but not yet saved in a persistent store.

Declaration

var insertedObjects: Set<NSManagedObject> { get }

Discussion

A managed object context does not post key-value observing notifications when the return value of insertedObjects changes—it does, however, post a NSManagedObjectContextObjectsDidChange notification when a change is made, and a NSManagedObjectContextWillSave and a NSManagedObjectContextDidSave notification before and after changes are committed respectively.

See Also

Related Documentation

Handling managed objects