title: TablewView example in Beginning iPhone book
body: <p>This is probably a dumb question, but in the introduction to TableViews, the author has a property of NSArray *listData to fill the table with dummy data.  In the viewDidLoad, he basically does this:</p>
  
  <pre><code>- (void)viewDidLoad {
  NSArray *array = [[NSArray alloc] initWithObjects@"1", @"2", @"3", more stuff, nil];
  self.listData = array;
  [array release];
  ...
  }
  </code></pre>
  
  <p>Why does he create another array and set it to the property as opposed to doing something like</p>
  
  <pre><code>- (void)viewDidLoad {
  listData = [[[NSArray alloc] initWithObjects@"1", @"2", @"3", more stuff, nil]autorelease];
  </code></pre>
  
  <p>Is it to manage memory better by using alloc/init vs the autorelease pool?  Or is the second way just not going to work?  Thanks.</p>