Core Data Fundamentals
Don't Forget to Save
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.
Purchase Core Data Fundamentals and access it whenever you want and for as long as you want.
Join Cocoacasts Plus and access every 350+ tutorials including Core Data Fundamentals.