Closed chrisscholly closed 7 years ago
I think NSManagedObjectContextObjectsDidChangeNotification
only works for objects that have been previously fetched in the managed object context.
This has been a while, but you may have more luck observing NSManagedObjectContextDidSaveNotification
.
Thank you for your answer!
Have tried observing NSManagedObjectContextDidSaveNotification
but this is the same result :(
METDatabaseDidChangeNotification
seems to work better.
Currently I use Core Data to fetch data and METDatabaseDidChangeNotification
to observe changes.
I'm guessing there's no problem to fetch new data from Core Data when a METDatabaseDidChangeNotification
is fired. Does it make sense?
Yep, that makes sense.
Thank you guy! 👍🏻
Hi, Seems that I can't be notified with
NSManagedObjectContextObjectsDidChangeNotification
when I usecallMethodWithName
to perform Mongo update. The update is done locally, no problem, but I don't receive the notification. Example:Thanks in advance for your help :)