drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

iCloud Store changes #136

Closed sger closed 10 years ago

sger commented 10 years ago

Is possible to add icloud store changes for example using the following events

NSPersistentStoreCoordinatorStoresWillChangeNotification NSPersistentStoreCoordinatorStoresDidChangeNotification NSPersistentStoreDidImportUbiquitousContentChangesNotification

Great work!!!

drewmccormack commented 10 years ago

There are a few notifs in CDEPeristentStoreEnsemble, but some of the ones you mention don't make sense for Ensembles. Unlike icloud, Ensembles never changes your store or modifies your persistent store coordinator. It maintains a separate stack.

The only notif you need to be aware of is the nke that fires after a merge. You can use the notif or the delegate method to merge changes into your context.