With cocos2d-x version 0.12 I am trying to load a very simple plist:
key “items” is NSArray
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?
simple.plist.zip (0.4 KB)