invalidatedIDs
TypeScriptget invalidatedIDs(): Array<NSManagedObjectID>Swift declarationlet invalidatedIDs: Set<NSManagedObjectID>Object IDs of objects that were invalidated during this save.
struct · iOS 27.0+ · SDK 27.1
struct DidSaveObjectIDsMessagePosted after a main queue context saves, containing object IDs rather than full objects. Only use this message type for contexts with `NSMainQueueConcurrencyType`.
get invalidatedIDs(): Array<NSManagedObjectID>Swift declarationlet invalidatedIDs: Set<NSManagedObjectID>Object IDs of objects that were invalidated during this save.
static makeMessage(notification: _Foundation_Notification): Promise<(NSManagedObjectContext_DidSaveObjectIDsMessage) | null>Swift declaration@MainActor static func makeMessage(_ notification: Notification) -> NSManagedObjectContext.DidSaveObjectIDsMessage?Converts a posted notification into this main actor message type for any observers. To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.
get deletedIDs(): Array<NSManagedObjectID>Swift declarationlet deletedIDs: Set<NSManagedObjectID>Object IDs of objects that were deleted during this save.
get updatedIDs(): Array<NSManagedObjectID>Swift declarationlet updatedIDs: Set<NSManagedObjectID>Object IDs of objects that were updated during this save.
get insertedIDs(): Array<NSManagedObjectID>Swift declarationlet insertedIDs: Set<NSManagedObjectID>Object IDs of objects that were inserted during this save.
get refreshedIDs(): Array<NSManagedObjectID>Swift declarationlet refreshedIDs: Set<NSManagedObjectID>Object IDs of objects that were refreshed during this save.
get historyToken(): (NSPersistentHistoryToken) | nullSwift declarationlet historyToken: NSPersistentHistoryToken?The persistent history token representing the state after the save.
get queryGeneration(): (NSQueryGenerationToken) | nullSwift declarationlet queryGeneration: NSQueryGenerationToken?Query generation token after the save.
static makeNotification(message: NSManagedObjectContext_DidSaveObjectIDsMessage): Promise<_Foundation_Notification>Swift declaration@MainActor static func makeNotification(_ message: NSManagedObjectContext.DidSaveObjectIDsMessage) -> NotificationConverts a posted main actor message into a notification for any observers. To implement this method in your own `MainActorMessage` conformance, use the properties defined by the message to populate the ``Notification``'s ``Notification/userInfo``. - Parameters: - message: The posted `MainActorMessage`. - Returns: The converted ``Notification``.
static get nameValue(): _Foundation_NSNotification_NameSwift declarationstatic let name: Notification.NameA optional name corresponding to this type, used to interoperate with notification posters and observers.
get context(): NSManagedObjectContextSwift declarationlet context: NSManagedObjectContextNo declarations were skipped in this snapshot.