I'am using key-value observing. I have object_1 (NSManagedObject) and few other objects-observers. When I remove object_1 from managed object context my program crashes.
CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.
Can I put something to dealloc method (or somewhere else) to remove all observers of object_1? Or the only appropriate decision is to send notification right when I am about to remove object_1 from managed object context and listen to this notification by other objects (to remove themselves from observers of object_1)?