With cocos2d-x version 0.12 I am trying to load a very simple plist:
NSDictionary
key “items” is NSArray
NSString
NSString
NSString
I load it in this way:
@ const char pszPath = CCFileUtils::fullPathFromRelativePath;
CCDictionary<std::string, CCObject>* dictionary = CCFileUtils::dictionaryWithContentsOfFile(pszPath);
CCArray *items = (CCArray *) dictionary~~>objectForKey;
int n_entities = items~~>count();
CCLog(“Count of entities: %d”,n_entities);
@
I get a random number as response.
I have tried to debug without success.
Can you help me?
Thank you!.
simple.plist.zip (0.4 KB)