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

# NSPersistentHistoryChange

A change representing the insertion, update, or deletion of a managed object in the persistent store.

```
class NSPersistentHistoryChange
```

## Topics

### Inspecting Change Metadata

[`fetchRequest`](/documentation/CoreData/NSPersistentHistoryChange/fetchRequest)

A fetch request that has the persistent history change as the entity.

[`entityDescription`](/documentation/CoreData/NSPersistentHistoryChange/entityDescription)

The entity description of the persistent history change entity.

[`+  entityDescriptionWithContext:`](/documentation/CoreData/NSPersistentHistoryChange/entityDescription(with:))

Requests an entity description for the managed object type affected by the change using the provided context.

### Inspecting Change Details

[`changeID`](/documentation/CoreData/NSPersistentHistoryChange/changeID)

The change’s numeric identifier.

[`changeType`](/documentation/CoreData/NSPersistentHistoryChange/changeType)

The type of change to the managed object in the persistent store.

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

The types of changes to managed objects reflected in persistent history.

[`changedObjectID`](/documentation/CoreData/NSPersistentHistoryChange/changedObjectID)

The identifier of the managed object that changed. (swift)
Declaration: @property(readonly, copy) NSManagedObjectID *changedObjectID; (objc)
Availability: iOS: 11.0 — iPadOS: 11.0 — Mac Catalyst: 13.1 — macOS: 10.13 — tvOS: 11.0 — visionOS: 1.0 — watchOS: 4.0 (objc,swift)
}

[`tombstone`](/documentation/CoreData/NSPersistentHistoryChange/tombstone)

A dictionary of attributes marked for preservation after deletion, and their values when deleted.

[`transaction`](/documentation/CoreData/NSPersistentHistoryChange/transaction)

The persistent history transaction containing this change.

[`updatedProperties`](/documentation/CoreData/NSPersistentHistoryChange/updatedProperties)

The set of properties that were updated on the managed object.

## Relationships

### Conforms To

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

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

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

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

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)