title: Warning "Potential leak of an object allocated on line ..." when declaring a 2D array
body: <p>Initially i declared a 2D array in this way: </p>
  
  <pre><code>subUrb = [[NSArray alloc] initWithObjects:
       [[NSArray alloc] initWithObjects:ALL_SUBURBS_LABEL, @"East",@"South", @"West", @"North", nil] ,
       [[NSArray alloc] initWithObjects:ALL_SUBURBS_LABEL, @"Kuala Lumpur SubUrb1", @"Kuala Lumpur SubUrb2", nil],
       [[NSArray alloc] initWithObjects:ALL_SUBURBS_LABEL, @"Jakarta SubUrb1",nil],
       nil]; 
  </code></pre>
  
  <p>But when i try to 'analyze' the warnings of the project, i got three same type of issues in this chunk of code - <strong>"potential leak of an object allocated on line xxx"</strong></p>
  
  <p>I noticed that to get rid of it, i have to write sth like this:</p>
  
  <pre><code>subUrb = 
      [[NSArray alloc] initWithObjects:
          [[[NSArray alloc] initWithObjects:ALL_SUBURBS_LABEL, @"East",@"South", @"West", @"North", nil] autorelease],
          [[[NSArray alloc] initWithObjects:ALL_SUBURBS_LABEL, @"Kuala Lumpur SubUrb1", @"Kuala Lumpur SubUrb2", nil] autorelease],
          [[[NSArray alloc] initWithObjects:ALL_SUBURBS_LABEL, @"Jakarta SubUrb1",nil] autorelease],
          nil];
  </code></pre>
  
  <p>Then i will not get any analyze warnings. But i dun like this...it is not logical. This 2D array should never be released in my controller actually, the entire 2D array should be retained for the entire life time of the controller for a PickerView.</p>
  
  <p>How should I declare the 2D array more elegantly?</p>