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

# hasChanges

A Boolean value that indicates whether the managed object has been inserted, has been deleted, or has unsaved changes.

```
var hasChanges: Bool { get }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the receiver has been inserted, has been deleted, or has unsaved changes, otherwise <doc://com.apple.documentation/documentation/Swift/false>. The result is the equivalent of OR-ing the values of [`isInserted`](/documentation/CoreData/NSManagedObject/isInserted), [`isDeleted`](/documentation/CoreData/NSManagedObject/isDeleted), and [`isUpdated`](/documentation/CoreData/NSManagedObject/isUpdated).

---

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)