One Logo Pool Ball
CoreData · IOS API REFERENCE

NSManagedObjectContext.DidMergeChangesMessage

struct · iOS 27.0+ · SDK 27.1

struct DidMergeChangesMessage

Posted after a main queue context merges changes from another context, containing object IDs. Only use this message type for contexts with `NSMainQueueConcurrencyType`. For private queue contexts, use ``NSManagedObjectContext/DidMergeChangesAsyncMessage``.

Members (11)

static · iOS 27.0+

makeMessage

TypeScript
static makeMessage(notification: _Foundation_Notification): Promise<(NSManagedObjectContext_DidMergeChangesMessage) | null>
Swift declaration
@MainActor static func makeMessage(_ notification: Notification) -> NSManagedObjectContext.DidMergeChangesMessage?

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 · iOS 27.0+

deletedIDs

TypeScript
get deletedIDs(): Array<NSManagedObjectID>
Swift declaration
let deletedIDs: Set<NSManagedObjectID>

Object IDs of objects that were deleted during the merge.

get · iOS 27.0+

updatedIDs

TypeScript
get updatedIDs(): Array<NSManagedObjectID>
Swift declaration
let updatedIDs: Set<NSManagedObjectID>

Object IDs of objects that were updated during the merge.

get · iOS 27.0+

insertedIDs

TypeScript
get insertedIDs(): Array<NSManagedObjectID>
Swift declaration
let insertedIDs: Set<NSManagedObjectID>

Object IDs of objects that were inserted during the merge.

get · iOS 27.0+

historyToken

TypeScript
get historyToken(): (NSPersistentHistoryToken) | null
Swift declaration
let historyToken: NSPersistentHistoryToken?

The persistent history token representing the state after the merge.

get · iOS 27.0+

refreshedIDs

TypeScript
get refreshedIDs(): Array<NSManagedObjectID>
Swift declaration
let refreshedIDs: Set<NSManagedObjectID>

Object IDs of objects that were refreshed during the merge.

get · iOS 27.0+

invalidatedIDs

TypeScript
get invalidatedIDs(): Array<NSManagedObjectID>
Swift declaration
let invalidatedIDs: Set<NSManagedObjectID>

Object IDs of objects that were invalidated during the merge.

get · iOS 27.0+

queryGeneration

TypeScript
get queryGeneration(): (NSQueryGenerationToken) | null
Swift declaration
let queryGeneration: NSQueryGenerationToken?

Query generation token after the merge.

static · iOS 27.0+

makeNotification

TypeScript
static makeNotification(message: NSManagedObjectContext_DidMergeChangesMessage): Promise<_Foundation_Notification>
Swift declaration
@MainActor static func makeNotification(_ message: NSManagedObjectContext.DidMergeChangesMessage) -> Notification

Converts 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``.

get · iOS 27.0+

name

TypeScript
static get nameValue(): _Foundation_NSNotification_Name
Swift declaration
static let name: Notification.Name

A optional name corresponding to this type, used to interoperate with notification posters and observers.

get · iOS 27.0+

context

TypeScript
get context(): NSManagedObjectContext
Swift declaration
let context: NSManagedObjectContext

Skipped declarations

No declarations were skipped in this snapshot.

All CoreData types →