From 78d048d0e028c282c31a48eb43106c3d364ae5c4 Mon Sep 17 00:00:00 2001 From: Jungpyo Hong Date: Mon, 28 Jun 2021 23:33:20 -0500 Subject: [PATCH] update CoreData Stack description --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 366c4b6..02b2859 100644 --- a/README.md +++ b/README.md @@ -778,7 +778,11 @@ Use Core Data to save your application’s permanent data for offline use, to ca - + - NSManagedObject - This is a base class of all the core data model object. This provides the schema of our database table. This is used to store model data in our application. KVO and KVC compliant. It can notify any changes that are done on its properties if any object is listening. + - NSManagedObjectContext - Most important class. This is the place where you do all the computations. You can think this as a scratch pad where you do all the operations realated to core data (CRUD). It's an object which you can use to manipulate and track any changes done to manage object. All the changes done on a context object will be held until and unless you are discarding or writing those changes permaneently to persistntent storage. + - NSPersistentStoreCoordinator - The main functionality is to provide a communication between context and persistent store. + - NSPersistentStore - They are the stores in which the data are being saved. These includes SQLite, In-Memory, Binary, XML(the XML store is not available on iOS). + - NSPersistentContainer - This contains the whole core data stacks.