新手求助关于editBox设置代理问题

当设置代理的时候会出现错误:
CCLabelTTF userLabel = CCLabelTTF::create(“Name:”, “Consolas”, 24);
userLabel->setPosition(ccp(size.width
0.1, size.height*0.8));
userLabel->setAnchorPoint(ccp(0,0.5));
addChild(userLabel);

userInfo = CCEditBox::create(CCSize(size.width*0.7, 50),
CCScale9Sprite::create(“green_edit.png”),
CCScale9Sprite::create(“orange_edit.png”));

userInfo->setPosition(ccp(size.width0.1, size.height0.65));
userInfo->setAnchorPoint(ccp(0,0.5));
addChild(userInfo);
userInfo->setFont(“Consolas”, 25);
userInfo->setPlaceHolder(“user name”);

userInfo->setInputMode(kEditBoxInputModeNumeric);
userInfo->setDelegate(this);

就在最后一行this会出错,出现“error C2664: “cocos2d::extension::CCEditBox::setDelegate”: 不能将参数 1 从“MyScene *const ”转换为“cocos2d::extension::CCEditBoxDelegate *””
我是按照教程把代码敲下来的,求助,editBox这个代理该怎么设置?

MyScene有没有继承EditBoxDelegate

http://blog.csdn.net/jackystudio/article/details/17297721

感谢大神,一语道破~~~~