Closed Clafou closed 10 years ago
The removeObserver: call passes in the wrong object, and therefore does not have the intended effect. It should pass in the return value of the call to addObserverForName:object:queue:usingBlock:
removeObserver:
addObserverForName:object:queue:usingBlock:
This is what you get when you don't read the documentation when using a new API... Good spot.
;) Most apps probably don't need to call this method anyway!
True, but if the method is there it should work!
The
removeObserver:
call passes in the wrong object, and therefore does not have the intended effect. It should pass in the return value of the call toaddObserverForName:object:queue:usingBlock: