title: How do I add object to NSMutableDictionary with key?
body: <p>I have a plist. I want add the elememts from that plist to a mutable dictionary. First I check the user name in the plist, and my current name are same or not. If it is same, then I want to add all value to that dictionary rom plist, and also assign the same key:</p>
  <pre><code> for(int i=0;i&lt;[displayList count];i++)
      {
          if([[[data valueForKey:@&quot;username&quot;] objectAtIndex:i] isEqualToString:user])
          {
              [finalBooks setValue:[[data valueForKey:@&quot;ID&quot;] objectAtIndex:i] forKey:@&quot;ID&quot;];
              [finalBooks setValue:[[data valueForKey:@&quot;name&quot;] objectAtIndex:i] forKey:@&quot;name&quot;];
              [finalBooks setValue:[[data valueForKey:@&quot;Place&quot;] objectAtIndex:i] forKey:@&quot;Place&quot;];
            [finalBooks setValue:[[data valueForKey:@&quot;username&quot;] objectAtIndex:i] forKey:@&quot;username&quot;];
              
  
          }
      }
  </code></pre>
  <p><strong>[displayList count] this value is 7 so each value replacing 6 times ,and am getting only final values</strong> I want every values matching to user name I that mutabledictionary.</p>