title: Question about NSMutableArray
body: <p>I currently try to fill and NSMutableArray with something like this:</p>
  
  <pre><code>deck = [[NSMutableArray alloc] initWithCapacity:52]; 
  for (int suit = 0; suit &lt;= 3; suit++) {
    for (int value = 1; value &lt;= 13; value++) {
      ANormalCard *card = [[ANormalCard alloc] initWithSuit:suit value:value];
      [deck addObject:card];
      [card autorelease];
    }
  }
  </code></pre>
  
  <p>Now the problem is when I go over the array, only the last object I create is 52x in the array. Any idea what I am doing wrong ?</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>the -initWithSuit looks like this:</p>
  
  <pre><code>- (id) initWithSuit:(int)suit value:(int)val {
      if ((self = [super init])) {
          theSuit = suit;
          theValue = val;
      }
      return self;
  }
  </code></pre>
  
  <p>I'm using <code>NSEnumerator * enumerator = [deck objectEnumerator];</code> and a while loop to iterate over the array.</p>