Mac Developer Library

Developer

Core Data Framework Reference NSSaveChangesRequest Class Reference

Options
Deployment Target:

On This Page
Language:

NSSaveChangesRequest

A save changes request encapsulates a collection of changes to be made by an object store in response to a save operation on a managed object context.

  • The objects that were inserted into the calling context. (read-only)

    Declaration

    Swift

    var insertedObjects: Set<NSManagedObject>? { get }

    Objective-C

    @property(readonly, strong) NSSet <__kindof NSManagedObject *> *insertedObjects

    Availability

    Available in OS X v10.7 and later.

  • The objects that were modified in the calling context. (read-only)

    Declaration

    Swift

    var updatedObjects: Set<NSManagedObject>? { get }

    Objective-C

    @property(readonly, strong) NSSet <__kindof NSManagedObject *> *updatedObjects

    Availability

    Available in OS X v10.7 and later.

  • The objects that were deleted in the calling context. (read-only)

    Declaration

    Swift

    var deletedObjects: Set<NSManagedObject>? { get }

    Objective-C

    @property(readonly, strong) NSSet <__kindof NSManagedObject *> *deletedObjects

    Availability

    Available in OS X v10.7 and later.

  • The objects that were flagged for optimistic locking on the calling context. (read-only)

    Declaration

    Swift

    var lockedObjects: Set<NSManagedObject>? { get }

    Objective-C

    @property(readonly, strong) NSSet <__kindof NSManagedObject *> *lockedObjects

    Discussion

    Objects are flagged for optimistic locking with detectConflictsForObject:.

    Availability

    Available in OS X v10.7 and later.