Question 1)
I am creating a NSMutableDictionary from a NSDictionary using the following code:
_allKeysDictionary = [receivedDictionary mutableCopy];
and I am updating the values from the _allKeysDictionary using the following code:
[_allKeysDictionary setObject:[textField text] forKey:@"field"];
But my parent NSDictionary
that is receivedDictionary is not reflecting those changes made in _allKeysDictionary.
I need the values of receivedDictionary
to be updated.
Question 2)
I am using
(__bridge CFMutableDictionaryRef)
to keep a pointer to one of the NSDictionary
in my JSON response. but when I am trying to regain the above CFMutableDictionaryRef
, I am still getting NSDictionary
. I don't know what is wrong. I am using the following code to regain the Dictionary from the reference
NSMutableDictionary *getPointedDict = (__bridge NSMutableDictionary*) dataRefValue;