Posted when objects in a main queue context change (inserted, updated, deleted, refreshed, or invalidated).
Only use this message type for contexts with `NSMainQueueConcurrencyType`.
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+
invalidated
TypeScript
get invalidated(): Array<NSManagedObject>
Swift declaration
var invalidated: Set<NSManagedObject> { get }
Objects that were invalidated.
get · iOS 27.0+
invalidatedAll
TypeScript
get invalidatedAll(): (boolean) | null
Swift declaration
let invalidatedAll: Bool?
True if all objects in the context were invalidated.
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.