/* NSManagedObjectID.h Core Data Copyright (c) 2004-2023, Apple Inc. All rights reserved. */ #import #import NS_ASSUME_NONNULL_BEGIN @class NSPersistentStore; @class NSEntityDescription; @class NSURL; // Managed object IDs are opaque identifiers for managed objects. API_AVAILABLE(macosx(10.4),ios(3.0)) @interface NSManagedObjectID : NSObject { } @property (readonly, strong) NSEntityDescription *entity; // entity for the object identified by an ID @property (nullable, readonly, weak) NSPersistentStore *persistentStore; // persistent store that fetched the object identified by an ID @property (getter=isTemporaryID, readonly) BOOL temporaryID; // indicates whether or not this ID will be replaced later, such as after a save operation (temporary IDs are assigned to newly inserted objects and replaced with permanent IDs when an object is written to a persistent store); most IDs return NO - (NSURL *)URIRepresentation; // URI which provides an archivable reference to the object which this ID refers @end NS_ASSUME_NONNULL_END