---
title: NSManagedObjectContextDidSaveObjectIDs
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextdidsaveobjectids
---

# NSManagedObjectContextDidSaveObjectIDs

A notification that posts after a context finishes writing changes.

## Declaration

```swift
static let NSManagedObjectContextDidSaveObjectIDs: NSNotification.Name
```

## Discussion

Discussion This notification’s object is the saved context. Don’t peform any asynchronous work or block the calling thread. NSManagedObjectContext posts notifications to the same thread that creates it. The userInfo dictionary contains the identifiers of the inserted, updated, deleted, and invalidated managed objects. For the keys to access those objects, see NSManagedObjectContext.NotificationKey. It’s safe to capture the dictionary’s contents. Use this notification instead of NSManagedObjectContextDidSave if you intend to process the changed managed object on a different thread. It’s safe to pass instances of NSManagedObjectID across thread boundaries.

## See Also

### Core Data

- [NSManagedObjectContextDidSave](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextdidsave.md)
- [NSManagedObjectContextObjectsDidChange](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextobjectsdidchange.md)
- [NSManagedObjectContextWillSave](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextwillsave.md)
- [NSPersistentStoreCoordinatorStoresDidChange](foundation/nsnotification/name-swift.struct/nspersistentstorecoordinatorstoresdidchange.md)
- [NSPersistentStoreCoordinatorStoresWillChange](foundation/nsnotification/name-swift.struct/nspersistentstorecoordinatorstoreswillchange.md)
- [NSPersistentStoreCoordinatorWillRemoveStore](foundation/nsnotification/name-swift.struct/nspersistentstorecoordinatorwillremovestore.md)
- [NSCoreDataCoreSpotlightDelegateIndexDidUpdate](foundation/nsnotification/name-swift.struct/nscoredatacorespotlightdelegateindexdidupdate.md)
- [NSManagedObjectContextDidMergeChangesObjectIDs](foundation/nsnotification/name-swift.struct/nsmanagedobjectcontextdidmergechangesobjectids.md)
- [NSPersistentStoreRemoteChange](foundation/nsnotification/name-swift.struct/nspersistentstoreremotechange.md)
- [NSPersistentStoreDidImportUbiquitousContentChanges](foundation/nsnotification/name-swift.struct/nspersistentstoredidimportubiquitouscontentchanges.md)
