This might sounds a bit noobish question but I couldn’t find anything on google regarding this. I have two CCArrays
# holds the pointers for all moving sprites on CCLayer. (characters etc)
# holds the pointers for all non-moving sprites on same CCLayer. (interactive objects)
In constructor where I initialize the CCLayer I did this
movingSpriteArray = CCArray::create();
interactiveSpriteArray = CCArray::create();
And in destructor I released these CCArray pointers.
My question is will releasing the CCArray objects release all the objects that array is holding?
Or do I have to iterate through all the objects in CCArray and release them before I release the CCArray.
Another doubt is, is it better to call autorelease or release on the array in destructor?