I have
NSMutableDictionary *myDictionary = [[NSMutableDictionary alloc] init];
id dict = [myDictionary copy];
but is dict
now just a regular NSDictionary
? Or is it a copy of the NSMutableDictionary
?
Also, is there any way to go from mutable to non-mutable?
copy
does not create a deep copy, so the objects in the copied dictionary will be the same as those in the original one, not copies. – Mellman