Tuesday, April 09, 2013

Upgrade from cocos2d-2.0-x-2.0.4 to cocos2d-2.1rc0-x-2.1.2


- CCDirector::sharedDirector()->getScheduler()->unscheduleAllSelectorsForTarget(this);
+ CCDirector::sharedDirector()->getScheduler()->unscheduleAllForTarget(this);



-       virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, cocos2d::CCString * pSelectorName);
-       virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
-       virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, cocos2d::CCString * pMemberVariableName, cocos2d::CCNode * pNode);
+       virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, const char * pSelectorName);
+       virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, const char * pSelectorName);
+       virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, const char * pMemberVariableName, cocos2d::CCNode * pNode);


-       CCScale9Sprite *backgroundButton2 = CCScale9Sprite::spriteWithFile("button.png");
-       CCScale9Sprite *backgroundHighlightedButton2 = CCScale9Sprite::spriteWithFile("buttonHighlighted.png");
-       CCLabelTTF *menuButton = CCLabelTTF::labelWithString("Menu", "Marker Felt", 30);
+       CCScale9Sprite *backgroundButton2 = CCScale9Sprite::create("button.png");
+       CCScale9Sprite *backgroundHighlightedButton2 = CCScale9Sprite::create("buttonHighlighted.png");
+       CCLabelTTF *menuButton = CCLabelTTF::create("Menu", "Marker Felt", 30);



-       dbPath = CCFileUtils::sharedFileUtils()->getWriteablePath();
+       dbPath = CCFileUtils::sharedFileUtils()->getWritablePath();


-               fullPath = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath("data.mp3");
+               fullPath = CCFileUtils::sharedFileUtils()->fullPathForFilename("data.mp3");






No comments: