However, I am stumped trying to read in an “Array”? I have an “Array” of dictionaries each with their own sub arrays, etc, and need to read it into a CCArray. Suggestions?
Sorry, I had a typo in my original code and was missing the > that you put back in . The correct syntax is in my live code, I just messed up the copy/paste to the forum. Although that was not my question, I guess I wasnt overly clear as to what my question actually was… I am attempting to read a Plist into some values within Cocos2d-x. I can open the Plist dictionary and sub dictionaries using the code you posted above, but I cannot for the life of me figure out how to read a Plist “Array” value into a Cocos2d-x array/dictionary container in order to parse their data further.
I have tried to read the arrays as dictionaries but that causes a fault. However, if I manually go into the Plist in XCode and simply set all arrays as dictionaries, I can read them fine. However I really dont want to have to do that for all the Plists I am using that contain arrays. Is there a way to cast or convert a PList array to a dictionary as it is being read in by Cocos2d-x?
Sorry for the confusion, and the typos (Thats what I get for using a global copy paste!).