Quote:
Originally Posted by johnqh
Your "copy" property of NSMutableArray won't add reference count to the objects in the array.
|
Actually, it does add to the reference count. It's a shallow copy, but retains are sent to the objects.
Quote:
|
Their reference count +1 when you add them to the array, but when you removeAllObjects (or the array release), their reference count -1. And then, at the end of autorelease pool, they are dealloc'd.
|
But then he should get the same behavior regardless of whether he removes all objects or releases the array. But he says he is not getting the same behavior.
Sanniv, can you show us the header file for the class of myImageView? (and please use code tags)