title: iPhone SDK: How to copy the contents of a NSArray to NSMutable array?
body: <p>I need to copy the contents of an NSArray to NSMutable array. In other words, I want to copy arrayCountryChoices to arraySearchResults. Any ideas????</p>
  
  <pre><code>//main data
  NSArray *arrayCountryChoices;
  
  //search results buffer 
  NSMutableArray *arraySearchResults;
  
  
  //create data 
  arrayCountryChoices = [[NSArray alloc] initWithObjects:@"foo",@"bar",@"baz",nil];   
  
  //copy the original array to searchable array -&gt;&gt; THIS  IS NOT WORKING AS EXPECTED
  arraySearchResults = [[NSMutableArray alloc] arrayWithArray:arrayCountryChoices];
  </code></pre>
  
  <p>Thanks in advance.</p>