<!--
{
  "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/NSManagedObject/changedValuesForCurrentEvent()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSManagedObject(im)changedValuesForCurrentEvent"
  },
  "title" : "changedValuesForCurrentEvent()"
}
-->

# changedValuesForCurrentEvent()

Returns a dictionary containing the keys and new values of persistent properties with changes since the last fetching or saving of the managed object.

```
func changedValuesForCurrentEvent() -> [String : Any]
```

## Return Value

A dictionary with keys that are the names of persistent properties with changes since the last posting of <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/NSManagedObjectContextObjectsDidChange>, and with the new values for those properties.

## Discussion

This method only reports changes to properties that are persistent properties of the receiver, not changes to transient properties or custom instance variables.

> Note: In Objective-C, this method returns the keys and values of persistent properties with changes since the last posting of ``doc://com.apple.coredata/documentation/CoreData/NSManagedObjectContextObjectsDidChangeNotification``.

---

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)