Does the objectForKey: method of NSMutableDictionary class return a copy of the object?
If I have a NSMutableArray stored inside a NSMutableDictionary and I make some modifications (like adding an object) to the array that I accessed with the objectForKey: method of the dictionary will those modifications be valid for the array stored inside the dictionary?
No, it does not return a copy.
Output:
You are returned the same pointer, meaning the object has not been copied.