title: add NSDictionary as a value for a NSDictionary key
body: <p>I want to add a different Dictionary as a value for an other key dictionary, but in the and of my loop I find the same values added to all my dictionary keys.
  Here's my code:</p>
  
  <pre><code>for (MyObject *message in messages) {
          int value = [key intValue] +1;
  
  [mess setObject:message.body forKey:@"msg"];
          [mess setObject:message.bareJidStr forKey:@"sender"];
          [mess setObject:[element attributeStringValueForName:@"to"] forKey:@"reciever"];
          [mess setObject:message.timestamp forKey:@"date"];
          [[self messagesHistory] setObject:mess forKey:[NSString stringWithFormat:@"%d",value]];
  }
  </code></pre>
  
  <p>There's something which is not working properly, but I can;t figure out where !
  Thanks for your help. </p>