In AS3, I would often do something like this
if(myObject != null)
{
//if we get here then myObject is ready to go
}
else
{
//myObject = null so we need to set it up
}
In Obj-c I understand you initialise an object like this...
myObject = [[NSObject alloc] init];
But how would I do a similar check in obj-c, as I would do in AS3, and/or is that the best way to do that? should there be another way to know if an object has already been initialised and if it hasn't set up?
So when I'm done with the object in AS3, I just need to do
myObject = null;
And the code knows to set it up next time it comes to that conditional code.
nilorNULL- but wasn't this in the Objective-C tutorial that you do have read?