-1

Just that--I'm a newbie and I don't know which one to use in any situation.

JeremyP
  • 84,577
  • 15
  • 123
  • 161
Joel Derfner
  • 2,207
  • 6
  • 33
  • 45

1 Answers1

8

There is no difference because neither exists for a NSMutableArray.

However, those methods exist for NSMutableDictionary. The difference between the 2 is this:

From apple: NSMutableDictionary

-setValue:forKey:

This method adds value and key to the dictionary using setObject:forKey:, unless value is nil in which case the method instead attempts to remove key using removeObjectForKey:.

Richard J. Ross III
  • 55,009
  • 24
  • 135
  • 201
Jeremy
  • 8,902
  • 2
  • 36
  • 44
  • 3
    Not sure what 'complete dupe' means. The above is quoted (and cited) from apple's website. Unless you intended to vote down the question. Cheers. – Jeremy Aug 02 '12 at 14:21
  • 2
    @RichardJ.RossIII I followed your link and it's not a duplicate of any of the answers there. – JeremyP Aug 02 '12 at 15:40