// here "object" is an object pointer if (object == nil) { NSLog("object is nil"); }