After adding the key value pairs in NSMutableDictionary, when i retrive the key/values from it, will that retrived key/value be removed from NSMutableDictionary? or is it stil maintained in NSMutableDictionary?
+4
A:
If you are using objectForkey to retrieve the value, the key/value will stay in the dictionary. If you would like to remove an object for a particular key from the dictionary, you need to use removeObjectForKey.
Cannonade
2010-03-10 04:59:34
+2
A:
Unless you call removeObjectForKey or similar, it stays in there.
Jacob Relkin
2010-03-10 04:59:47