In Core Data ‘Managed Object Context’ are actually instances of NSManagedObjectContext class. Applications that uses Core Data never interact directly with the persistent store, it interacts with the managed object context layer of the Core Data stack. The context maintains the status of the objects in relation to the underlying data store and manages the relationships between managed objects defined by the managed object model. All interactions with the underlying database are held temporarily within the context until the context is instructed to save the changes, at which point the changes are passed down through the Core Data stack and written to the persistent store.
Liked By
Write Answer
What is the use of ‘Managed Object Context’ in Core Data
Join MindStick Community
You have need login or register for voting of answers or question.
Tarun Kumar
22-Sep-2015In Core Data ‘Managed Object Context’ are actually instances of NSManagedObjectContext class. Applications that uses Core Data never interact directly with the persistent store, it interacts with the managed object context layer of the Core Data stack. The context maintains the status of the objects in relation to the underlying data store and manages the relationships between managed objects defined by the managed object model. All interactions with the underlying database are held temporarily within the context until the context is instructed to save the changes, at which point the changes are passed down through the Core Data stack and written to the persistent store.