Possible Duplicate:
! vs == nil in objective-c
In Objective C, is there any difference between the following two conditionals?
NSObject *obj;
if(!obj)
{
...
}
And:
NSObject *obj;
if(obj == nil)
{
...
}
Thanks! Just curious, figure it's a good thing to know.