Quote:
Originally Posted by gabacus
ok... i really dont know if this is right, but it may be worth checking...
you have to set the array to nil before you try and release it dont you? is removeAllObjects the same as setting to nil?
|
------------------------
You mean to say instead of
[myMutableArray release];
I should do
myMutableArray=nil;
But this will just put the nil value at myMutableArray pointer without freeing the memory, I guess..
The removeAllObjects method removes all the objects present in the array as per the Apple documentation. It doesn't release the array, I guess.