WHAT IS THE USE OF ‘MANAGED OBJECT CONTEXT’ IN CORE DATA

Tarun Kumar

Total Post:107

Points:535
Posted by  Tarun Kumar
 535  View(s)
Ratings:
Rate this:
  1. Tarun Kumar

    Post:107

    Points:535
    What is the use of ‘Managed Object Context’ in Core Data

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!