core-data
core-data copied to clipboard
Sample code for the objc.io Core Data book
> When we receive a did-save notification, we call `notifyAboutChangedObjects(from notification:)`, which, in turn, calls `processChangedLocalObjects(_:)`. That method will then distribute the objects to all change processors Calling `notify...` happens...
What is the point of this? Why set the fetchLimit to 2 and then fatal error if two objects are returned?
Keeping initializer's validation format
I'm getting this CoreData error in my crash reporter but I'm unable to reproduce it. The crashing lines: * [SyncCoordinator](https://github.com/objcio/core-data/blob/master/Moody/MoodySync/SyncCoordinator.swift#L178) * [Managed](https://github.com/objcio/core-data/blob/master/SharedCode/Managed.swift#L88) The error message: > Fatal error: 'try!' expression...
Just purchased your book thank you for writing this I am finding it very helpful already. I've downloaded "core-data-master" from GitHub, updated all settings per instructions including addition of Mood...
NSPersistentContainer's `newBackgroundContext()` documentation states that the created context is setup to automatically consume didSave notifications. Yet, the syncContext in SyncContextOwner still merges changes [manually](https://github.com/objcio/core-data/blob/master/Moody/MoodySync/SyncContextOwner.swift#L66) on the main context's didSave. Is...
When attempting to run Sample Project Chapter 1.1 and 1.2 I get the following error on the Utilities.swift file: > Binary operator '===' cannot be applied to operands of type...