Question: Is there a way to use existing objective-c methods to do a full deep copy of a NSDictionary or NSArray, that themselves have nested dictionaries or arrays within t
I think something like this should work.
NSData *buffer; NSMutableDictionary *_dict1, *_dict2; // Deep copy "all" objects in _dict1 pointers and all to _dict2 buffer = [NSKeyedArchiver archivedDataWithRootObject: _dict1]; _dict2 = [NSKeyedUnarchiver unarchiveObjectWithData: buffer];