does != nil check for 0x0?

Posted by 4thSpace on Stack Overflow See other posts from Stack Overflow or by 4thSpace
Published on 2010-03-14T18:54:02Z Indexed on 2010/03/14 18:55 UTC
Read the original article Hit count: 158

I have a custom class and check that a property isn't 0x0 by doing:

if(myinstance.someproperty != nil){
  //do something
}

However, even if someproperty is 0x0, I still go into the conditional. someproperty is of another class type. Is there some other way to check this?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk