<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSSaveChangesRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSaveChangesRequest"
  },
  "title" : "NSSaveChangesRequest"
}
-->

# NSSaveChangesRequest

An encapsulation of a collection of changes to be made by an object store in response to a save operation on a managed object context.

```
class NSSaveChangesRequest
```

## Topics

### Initializing a Request

[`-  initWithInsertedObjects:updatedObjects:deletedObjects:lockedObjects:`](/documentation/CoreData/NSSaveChangesRequest/init(inserted:updated:deleted:locked:))

Initializes a save changes request with collections of given changes.

### Getting Information about a Request

[`insertedObjects`](/documentation/CoreData/NSSaveChangesRequest/insertedObjects)

The objects that were inserted into the calling context.

[`updatedObjects`](/documentation/CoreData/NSSaveChangesRequest/updatedObjects)

The objects that were modified in the calling context.

[`deletedObjects`](/documentation/CoreData/NSSaveChangesRequest/deletedObjects)

The objects that were deleted in the calling context.

[`lockedObjects`](/documentation/CoreData/NSSaveChangesRequest/lockedObjects)

The objects that were flagged for optimistic locking on the calling context.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSPersistentStoreRequest`](/documentation/CoreData/NSPersistentStoreRequest)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)