---
title: objectIDNotification()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nspersistenthistorytransaction/objectidnotification()
---

# objectIDNotification()

Obtains a notification for use in merging the transaction’s changes into a managed object context.

## Declaration

```swift
func objectIDNotification() -> Notification
```

## Mentioned in

Consuming relevant store changes

## Return Value

Return Value An NSManagedObjectContextDidSaveObjectIDsNotification notification.

## Discussion

Discussion To merge the relevant changes into your view context, first obtain a notification by calling objectIDNotification() on the transaction. Then, pass the notification to mergeChanges(fromContextDidSave:).
