I'm trying to test if a property has been set yet. I know that with objects that I've got:
CGRect ppGoalFrame;
LocalPlaySetup *localPlaySetup;
and I can test
if (localPlaySetup == nil)
but if I attempt to test the CGRect with == nil or == NULL
if (ppGoalFrame == nil)
I get
invalid operands to binary == (have 'CGRect' and 'void *')
So is the CGRect
"void", null, nil...? before it's set? Obviously I can't compare CGrect to a void pointer (I can't use ppGoalFrame == void
); is there another way to test this? The Objective-C so far is pretty easy to understand but as soon as the C looms, I get a bit lost.