---
title: "init(objectID:)"
framework: coredata
role: symbol
role_heading: Initializer
path: "coredata/nsatomicstorecachenode/init(objectid:)"
---

# init(objectID:)

Returns a cache node for the given managed object ID.

## Declaration

```swift
init(objectID moid: NSManagedObjectID)
```

## Parameters

- `moid`: A managed object ID.

## Return Value

Return Value A cache node for the given managed object ID, or nil if the node could not be initialized.

## See Also

### Related Documentation

- [Core Data Programming Guide](apple-archive/documentation/Cocoa/Conceptual/CoreData.md)
