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

# managedObjectContextDidRegisterObjects(with:)

Indicates that objects identified by a given array of object IDs are in use in a managed object context.

```
func managedObjectContextDidRegisterObjects(with objectIDs: [NSManagedObjectID])
```

## Parameters

`objectIDs`

An array of object IDs.

## Discussion

This method and [`managedObjectContextDidUnregisterObjects(with:)`](/documentation/CoreData/NSIncrementalStore/managedObjectContextDidUnregisterObjects(with:)) allow managed object contexts to communicate interest in the row data of specific objects in a manner akin to reference counting. For more details, see [`managedObjectContextDidUnregisterObjects(with:)`](/documentation/CoreData/NSIncrementalStore/managedObjectContextDidUnregisterObjects(with:)).

---

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)