There are various questions related to this topic but none of them answer my question.
I want to removeObserver from an object when that object gets deallocated. I am using KVO since multiple items need to be observed, and NSNotification has huge overhead in that case.
Here is the scenario:
(Multiple) Objects are being observed by various other objects. When the observer gets deallocated, I can remove it as an observer. But when the observed get deallocated, I need to tell all the observers to remove themselves as observers. How to do this?