Specifies the store in which a newly inserted object will be saved.
- iOS 3.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Core Data
A managed object.
A persistent store.
You can obtain a store from the persistent store coordinator, using for example
It is only necessary to use this method if the receiver’s persistent store coordinator manages multiple writable stores that have
object’s entity in their configuration. Maintaining configurations in the managed object model can eliminate the need for invoking this method directly in many situations. If the receiver’s persistent store coordinator manages only a single writable store, or if only one store has
object’s entity in its model,
object will automatically be assigned to that store.