Test if a created object is nil

Viewed 7899

I am using this code

    if (managedObject == nil) {
        NSLog(@"foooo");
    }

to test if the created managedObject is nil or not. But I can never print this Fooooo. Do you know what I am doing wrong?

1 Answers
Related