-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Method to create a CCMenuItemToggle from a CCArray with a target selector #2143
Conversation
I hope the method. cocos2d-x for iPhone have the method |
CCMenuItemToggle *pRet = new CCMenuItemToggle(); | ||
pRet->CCMenuItem::initWithTarget(target, selector); | ||
pRet->m_pSubItems = CCArray::create(); | ||
pRet->m_pSubItems->retain(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not determine the return value of pRet and initWithTarget?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't get your statement.
You are right. |
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
… object) causes crash.
fixed #2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
… object) causes crash.
fixed #2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
… object) causes crash.
fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
… object) causes crash.
…elop fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
… object) causes crash.
fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
… object) causes crash.
…elop fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
… object) causes crash.
…elop fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
… object) causes crash.
…elop fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
fixed #2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
I have added a Method to create a CCMenuItemToggle from a CCArray with a target selector.