title: Iteration over NSMutableArray objects. Best Practice
body: <p>in my app I have several loops where accessing to the members of a NSMutableArray to use them. Here an example:</p>
  
  <pre><code>for (a=0;a&lt;[items count];a++)
  {
  iItem *item = [[items objectAtIndex:a] autorelease];
  
      [page.view addSubview:item];
  
  NSLog(@"Item Added: %d\nItem Frame X:%f Y:%f W:%f H:%f",item.itemId,item.frame.origin.x,item.frame.origin.y,item.frame.size.width,item.frame.size.height);
  
      [item setDelegate:page];
  
      if ([[items objectAtIndex:a] zOrder] == 1)
          [page.view sendSubviewToBack:item];
      else 
          [page.view bringSubviewToFront:item];
  
  //[item release];
  //item = nil;
  
  }
  </code></pre>
  
  <p>My question is if I've created the iItem objects in a different method using alloc/init and release after adding it to the MutableArray, is necessary use a release over iItem created in the loop, after being used?</p>
  
  <p>Thanks.</p>