Is this ok?
NSDate *myDate;
Because I used something like this before:
NSDate *myDate = [[NSDate alloc] init];
if (something)
myDate = thisDate;
else
myDate = thatDate;
[myFunction initWithDate:myDate];
I always got "Value stored to 'myDate' during its initialization is never read". If I do something like this
if (something)
NSDate *myDate = thisDate;
else
NSDate *myDate = thatDate;
[myFunction initWithDate:myDate];
I get "Unused variable 'myDate'" and "'myDate' undeclared (first use in this function)"
How does the release look like? Autorelease?