Skip to content
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

Merged
merged 1 commit into from
May 7, 2013

Conversation

CodeSnooker
Copy link
Contributor

I have added a Method to create a CCMenuItemToggle from a CCArray with a target selector.

@shinriyo
Copy link
Contributor

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();
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@minggo
Copy link
Contributor

minggo commented May 7, 2013

You are right.
Thank you.

minggo added a commit that referenced this pull request May 7, 2013
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
@minggo minggo merged commit cfe039a into cocos2d:master May 7, 2013
dumganhar pushed a commit to dumganhar/cocos2d-x that referenced this pull request Jun 5, 2013
dumganhar pushed a commit to dumganhar/cocos2d-x that referenced this pull request Jun 5, 2013
dumganhar pushed a commit that referenced this pull request Jun 5, 2013
fixed #2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
dumganhar pushed a commit to dumganhar/cocos2d-x that referenced this pull request Jun 5, 2013
dumganhar pushed a commit to dumganhar/cocos2d-x that referenced this pull request Jun 5, 2013
dumganhar pushed a commit that referenced this pull request Jun 5, 2013
fixed #2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
…elop

fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
…elop

fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
…elop

fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
…elop

fixed cocos2d#2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
minggo added a commit that referenced this pull request May 4, 2014
Added Method to create a CCMenuItemToggle from a CCArray with a target selector
dumganhar pushed a commit that referenced this pull request May 4, 2014
dumganhar pushed a commit that referenced this pull request May 4, 2014
dumganhar pushed a commit that referenced this pull request May 4, 2014
fixed #2143: cc.ScrollView(TableView, EditBox).setDelegate(tmp object) causes crash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants