关于TextFieldTTF添加光标,即addChild问题求教

Texture2D *texture = new Texture2D();
texture->initWithData(pixels,100, kCCTexture2DPixelFormat_RGB888, 2, 20, Size(column, nHeight));
m_pCursorSprite = Sprite::createWithTexture(texture);
Size winSize = getContentSize();
m_cursorPos = ccp(this->getPosition().x, this->getPosition().y + winSize.height/2);
log(“m_cursorPos x=%f y=%f”,m_cursorPos.x, m_cursorPos.y);
m_pCursorSprite->setPosition(m_cursorPos);
m_pCursorSprite->setAnchorPoint(ccp(0,0));
m_pCursorSprite->setVisible(false);
m_pCursorAction = RepeatForever::create((ActionInterval ) Sequence::create(FadeOut::create(0.5f), FadeIn::create(0.5f), NULL));
m_pCursorSprite->runAction(m_pCursorAction);
//addChild(m_pCursorSprite);
自定义类继承TextFieldTTF,以实现输入中英文,但是无法添加光标,查看Label类,发现
void Label::addChild(Node * child, int zOrder/
=0 /, int tag/ =0 */)
{
CCASSERT(0, “addChild: is not supported on Label.”);
}
呵呵。。。Label继承了SpriteBatchNode为何就不能添加Child 求指教?

我想官方应该会想到开发中有这样的需求,老版本是可以,新版本Label继承了SpritebatchNode,不知道怎么用了!

本人也遇到这样的问题了,还没有解决,求助一下

顶上去,我也求助

希望cocos2dx技术团队解决下,我遇到这个问题几次了,每次都绕过去