I have the following code fragment:
NSString* value = @\"value\";
NSString* key = @\"key\";
NSMutableDictionary* foo = [NSMutableDictionary dictionary];
NSDictio
Honestly, you can't easily tell the difference without a @try
block. Standard practice is as follows:
copy
the dictionary. If it's really non-mutable, the frameworks will optimize that into a retain
. If it really was mutable, then you probably wanted a copy anyway.