I have @class Foo that contains __weak id bar ivar. Several actions from methods in different classes can lead to the disappearance of the object and, thus, get bar niled.
I want to perform an action when ivar is automatically painted over by ARC.
If possible, I would like not to turn bar into a property or use monitoring for key values.
Is it possible? If not, can KVO be used against non-invariant ivars?
objective-c automatic-ref-counting ivar
Ricardo sanchez-saez
source share