I have a bunch of JSON objects coming back from the server, and I'm trying to normalize them a bit for my C target.
I have this listing:
I have a function that displays a string in a JSON object (which is NSMutableDictionary) for this enumeration, and then I try to set the status key to NSMUtableDictionary as follows:
VP_STATUS status = [myStringToEnumMappingFunction:[p objectForKey:@"status_label"]]; [p setValue:status forKey:@"status"];
However, on the line setValue: forKey, I get this error:
"Implicit conversion of VP_STATUS to id is disallowed with ARC"
Should I first convert the status to another? If so, then this view defeats the purpose of using messages that are defined as VP_STATUS, right?
I'm new to objective-c, so I could have done it completely wrong with everything I know, and I'm open to suggestions.
source share