title: addObject to NSMutableArray in NSMutableArray
body: <p>I have my <code>UITableView</code> data organized such that the sections of the table are the array elements of a <code>NSMutableArray</code>.  Each element itself is a <code>NSMutablearray</code> of <code>NSMutableDictionary</code>, representing the row of each section and the data for each row.</p>
  
  <p>When I create this, I load all the data and create each section's NSMutableArray, then add them one at a time to the "outer" <code>NSMutableArray</code>.  I reference the rows by:</p>
  
  <pre><code>[[[objData objectAtIndex:indexPath.section] objectAtIndex:indexPath.row] objectForKey:@"name"]
  </code></pre>
  
  <p>and have had no problems doing this.  I think the advantage here is I can have a variable number of sections, which I need, and a variable number of rows in each section, also a requirement.</p>
  
  <p>I do, however, get an error when I try to add a row to a section.</p>
  
  <pre><code>[[objData objectAtIndex:0] addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys: objectID,@"id",nameVar,@"name",nil]];
  </code></pre>
  
  <p>doesn't work.  Is this the problem, or is there a problem with the way I've layed out the array?  I'm thinking that the inner NSMutableArray is only alloted so much memory, but I would have thought the array is just an array of references and wouldn't have that issue.  I could be wrong - it isn't the first time.</p>
  
  <p>Thanks in advance for wrapping your head around this.</p>