CCEditbox binding error

CCEditbox binding error
0.0 0


Hi all,
I’m developing my games in lua & cocos2dx. I used tolua++ to convert CCEditbox and CCScale9Sprite without errors. But when i used CCEditbox in lua, when i call:
local editbox = CCEditbox:create(…)
layer:addChild(editbox) ==> crash in this line.

This is the error:

error in function ‘addChild’.
    argument #2 is ‘CCEditBox’; ‘CCNode’ expected.

Maybe due to casting CCEditbox to CCNode .

Does anyone know how to binding and use CCEditbox in lua ?


cocos2d-x 2.1.4 already have CCEditbox lua binding and has related test sample.