title: Initializing multidimensional NSArray for iPhone devel
body: <p>I'm starting with iPhone development and I need to use a multidimensional array.</p>
  <p>I initialize it using:</p>
  <pre><code>NSArray *multi=[NSArray 
    arrayWithObjects:[NSMutableArray arrayWithCapacity:13],
    [NSMutableArray array],nil];
  </code></pre>
  <p>But when I try to assign values to n-th cell like this:</p>
  <pre><code>[[multi objectAtIndex:4] addObject:@&quot;val&quot;];
  </code></pre>
  <p>The app hangs because index <code>4</code> is beyond the bounds <code>[0 .. 1]</code>.</p>
  <p>Which is the correct way to init my multi-array?  Thanks in advance and greetings.</p>