I use key monitoring. I have object_1 (NSManagedObject) and several other observer objects. When I remove object_1 from the context of a managed object, my program crashes.
CoreData: Error: A serious application error. An exception was found during the processing of changes to Core Data. This is usually an error in the NSManagedObjectContextObjectsDidChangeNotification observer.
Is it possible to put something in the dealloc method (or in another place) to remove all observers of object_1? Or is the only suitable solution to send a notification when I am going to remove object_1 from the context of the managed object and listen to this notification with other objects (to remove myself from the observers of object_1)?
Lloyd18
source share