<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentStoreCoordinatorStoresWillChangeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:@NSPersistentStoreCoordinatorStoresWillChangeNotification"
  },
  "title" : "NSPersistentStoreCoordinatorStoresWillChangeNotification"
}
-->

# NSPersistentStoreCoordinatorStoresWillChangeNotification

A notification that posts before a coordinator changes its registered stores.

```
extern NSString * const NSPersistentStoreCoordinatorStoresWillChangeNotification;
```

## Discussion

This notification’s `object` is the store coordinator that’s about to change. The framework posts the notification to an internal thread. Move to a known thread before peforming any work.

The `userInfo` dictionary contains information about the added and removed persistent stores, which you access with the [`NSAddedPersistentStoresKey`](/documentation/CoreData/NSAddedPersistentStoresKey) and [`NSRemovedPersistentStoresKey`](/documentation/CoreData/NSRemovedPersistentStoresKey) keys. Don’t capture the dictionary’s contents.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)