title: NSArray arrayWithObjects: limited to nine objects
body: <p>I'm getting apparently inconsistent behavior from NSArray arrayWithObjects: I'm trying to create a 19 element array but my line of code creates only nine elements. A test using strings works. Here's what I'm seeing.</p>
  
  <pre><code>cellButtonsArray = [NSArray arrayWithObjects: @"z", @"z", @"z", @"z", 
                      @"z", @"z", @"z", @"z", @"z", @"z", @"z", @"z", @"z",
                      @"z", @"z", @"z", @"z", @"z", @"z", nil];
  
  NSLog(@"count of cellButtonsArray = %i", [cellButtonsArray count]);
  </code></pre>
  
  <p>The output is: "count of cellButtonsArray = 19"   //This is test code and is fine.</p>
  
  <p>My real code uses objects which are UIButtons which are declared in the header. If I use two arrays of nine elements each, all is well. However, the following code throws no warnings or errors and works for the first nine cells. The rest are ignored.</p>
  
  <pre><code>cellButtonsArray = [NSArray arrayWithObjects:cell0, cell1, cell2, cell3, cell4,
                     cell5, cell6, cell7, cell8, cell9, cell10, cell11, cell12, cell13,
                     cell14, cell15, cell16, cell17, cell18, nil];
  
  NSLog(@"count of cellButtonsArray = %i", [cellButtonsArray count]);
  </code></pre>
  
  <p>The output is: "count of cellButtonsArray = 9"   </p>
  
  <p>Clearly, the count is not what I expect. The array works correctly with fewer than nine objects. Otherwise everything works, except for the nine buttons (cells) which aren't updated. Any ideas?</p>
  
  <p>Thanks in advance.</p>