In Cocoa, addObserver:forKeyPath:options:context:"neither the receiver nor anObserver" is saved. Therefore, I assume that self-observation is permitted; that is, it is absolutely true to do something like
[self addObserver:self forKeyPath...]
Until you forget to unregister selfas an observer as the first thing to do in dealloc.
Is this assumption correct?
source
share