NSMUrableArray alloc and init
<p>I used codes below and set the breakpoint at a1, a2</p>

<pre><code>NSMutableArray *aArray;
</code></pre>

<p>.....</p>

<pre><code>@property (nonatomic,retain)    NSMutableArray *aArray;
</code></pre>

<p>......</p>

<pre><code>NSMutableArray* a=[[NSMutableArray alloc]init] ;


for(int i=1;i&lt;=31;i++)
    [a  addObject:[NSNumber numberWithInt:i]];
aArray=a; 


[a release];// a1

int i=0;// a2
</code></pre>

<p>the amount of objects in aArray is 31
but afeter the line [a release], the amount changes to 0</p>

<p>As I know 'release' only make the retain counter -1, but why it also removes all objects in the MutableArray?</p>

<p>Welcone any comment</p>

<p>Thanks</p>

<p>interdev  </p>
