can someone tell me the difference in declare an mutable array with:
NSMutableArray *array = [NSMutableArray array];
and
NSMutableArray *array = [[NSMutableArray alloc] init];
Because in the beginning I was declaring all my arrays with alloc, and if in the end of a certain function I returned the array created with alloc, I had to autorelease that array, because of memory leak problems.
Now using the first declaration I don't need to release anything.
Thanks