title: iphone: What is the difference between setObject:forKey: and setValue:forKey: in Adding Entries to a Mutable Dictionary
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1249634/wheres-the-difference-between-setobjectforkey-and-setvalueforkey-in-nsmutabl">Where&#39;s the difference between setObject:forKey: and setValue:forKey: in NSMutableDictionary?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <pre><code>setObject:forKey:
  </code></pre>
  
  <p>Adds a given key-value pair to the dictionary.</p>
  
  <pre><code>- (void)setObject:(id)anObject forKey:(id)aKey
  </code></pre>
  
  <p>Again</p>
  
  <pre><code>setValue:forKey:
  </code></pre>
  
  <p>Adds a given key-value pair to the dictionary.</p>
  
  <pre><code>- (void)setValue:(id)value forKey:(NSString *)key
  </code></pre>
  
  <p>Then what is the difference in between them?
  Is the difference only in receiving parameters?
  can setObject:forKey: be used instead of setValue:forKey: ?</p>