title: Updating NSMutableArray of dictionary objects
body: <p>I have a NSMutableArray (i.e. "stories") of dictionary items.</p>
  
  <p>I can read the dictionary items in the array just fine, e.g. </p>
  
  <pre><code>[[[stories objectAtIndex: b] objectForKey: @"title"] 
  </code></pre>
  
  <p>But, now I am trying to update (i.e. replace) a couple of objects e.g. "title" &amp; "matchingword", but I cannot find the right code.  Any suggestions are much appreciated.</p>
  
  <p>I tried this, but it seems to be adding entirely new objects to the array</p>
  
  <pre><code>NSMutableDictionary *itemAtIndex = [[NSMutableDictionary alloc]init];
  [itemAtIndex setObject:[[placesArray objectAtIndex:a]objectAtIndex:0] forKey:@"reference"];
  [stories replaceObjectAtIndex:x withObject:itemAtIndex];  // replace "reference" with user's unique key
  [itemAtIndex release];
  </code></pre>
  
  <p>I also tried this (but didn't work either):</p>
  
  <pre><code>//NSMutableDictionary *itemAtIndex2 = [[NSMutableDictionary alloc]init];
  //[itemAtIndex2 setObject:[separatePlaces objectAtIndex:x] forKey:@"matchingword"];
  //[stories insertObject:itemAtIndex2 atIndex:x];  // add the unique matching word to story
  //[itemAtIndex2 release];
  </code></pre>
  
  <p>Help appreciated.  Thanks.</p>