Hi,
I am writing a crossplatform application in javascript using cocos2d-html5 , and i am using cocos2d-x for deploying it on android. (and cocos2d-iphone for iOS).
I need for the application a function that reads a plist file ands get a dictionary out of it (hence an associative array in javascript).
The thing is, if i try to use the method already written in javascript for that, it gets mapped and the correspondent method in the objective c (or c++) is missing. I managed to create and map a new working function i created in cc.fileUtils to iOS (in objective c) but i am having issues for the android (c++) version. The ccdictionary_to_jsval method in ScriptingCore.cpp fails to convert the dictionary and makes the application crash. I debugged the CCDictionary i create from the file using the functions already present in the library and seems ok, so i really don´t know where the problem might be.
I REALLY want to avoid write a custom DOM parser in javascript just because of that.
Is it possible to add this function for the next release of cocos2d-x? Or do you guys see a different and better solution? Has anyone tried to do that ?
Tyrion