objective c - How can i tell if an object has a key value observer attached -


If you tell objects object to deleting Objects: for an important path and not registering that key path It has been, SADS. As -

A supervisor can not be removed for the main path of 'Kepath' because he is not registered as a supervisor. '

Is there a way to determine whether an object is registered supervisor, so I can do this

  if (object supervisor) (remove supervisor) Other {go on my way to pleasure}  

around your deleted Observer call Hold a try

  @try {[someObject removeObserver: SomeObserver forKeyPath: somePath]; } @chitch (id an exposition) {// nothing, obviously it was not attached because an exception was thrown)  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -