I maybe naming it wrong, so please correct me.
I just want to know if this
if(obj == nil)
Yes, this is exactly the same.
! operator turns anything other than
nil into zero, while
1. Therefore, you get exactly the same results as the comparison with
if (obj) is logically identical to
if (obj != nil). This convention is inherited from C, where pointers are commonly used in conditions, and