You may be wondering why we didn't save the note immediately after creating it. That's a fair question. We could have. But why would we? Why would we push the changes of the managed object context to the persistent store every time something changes in the managed object context? That's a waste of resources and it may even impact performance, depending on the complexity of the operation.
Subscribe to Cocoacasts Plus to watch this episode.
Core Data Fundamentals
-
05:08
-
01:49
-
4 Exploring the Core Data Stack
06:46
-
01:06
-
6 Setting Up the Core Data Stack
08:31
-
06:41
-
11 Working With Managed Objects
08:44
-
12 Subclassing NSManagedObject
03:53
-
04:00
-
14 Don't Forget to Save
03:17
-
08:22
-
08:32
-
01:38
-
20 Adding Categories to the Mix
08:16
-
06:17
-
06:43
-
06:54
-
07:03
-
27 Using a Better Core Data Stack
01:10
-
08:01
-
04:27