14 Dec
2015
14 Dec
'15
6:16 a.m.
Hi guys,
I have problems with OCM when I compile with the newest Xcode and SDK. The JSON-response from OCM looks fine, but the data-object containing the JSON-response might be different from the old SDK. Trying to fetch data from the JSON-object fails.
This is the first code that fails:
- (void)syncAction:(NSDictionary *)data { ... [self parseConnectionTypes:NULL_TO_NIL(data[@"ConnectionTypes"])];
The watch tells me data[@"ConnectionTypes”] is an "invalid expression”, which is understandable since data is an NSCFArray with 100 entries of NSCFDictionary, so data simply do not contain any keys. Shouldn't data have been a dictionary instead? Any ideas, guys?
Regards, Geir