Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8921947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:41:41+00:00 2026-06-15T06:41:41+00:00

* Assertion failure in -[CCTouchDispatcher forceAddHandler:array:], /libs/cocos2d/Platforms/iOS/CCTouchDispatcher.m:108 * Terminating app due to uncaught exception

  • 0

* Assertion failure in -[CCTouchDispatcher forceAddHandler:array:], /libs/cocos2d/Platforms/iOS/CCTouchDispatcher.m:108

* Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Delegate already added to
touch dispatcher.’

The line causing it is

skillsMenu.isTouchEnabled = YES;

skillsMenu is just a CCMenu. I like to enable/disable it with the above line often.

The problem is, I don’t know how to interpret this error properly – I have no clue why would setting this property cause such error.

Perhaps it was wrong to use that line in the first place. Is there not a better way to enable/disable a CCMenu?

cocos2d-iphone 1.0.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:41:43+00:00Added an answer on June 15, 2026 at 6:41 am

    isTouchEnabled registers/unregisters the touch handler for the object.

    Registering and unregistering of touch handlers in the same step has caused problems in the past, although, in more recent versions, I believe this has been fixed.

    In any case, if you simply want to temporarily enable/disable a menu, it will be less problematic to enable/disable the individual menu items:

    -(void) modifyMenu:(CCMenu*) menu withEnabledValue:(BOOL) enabled
    {
        CCMenuItem *menuItem;
        CCARRAY_FOREACH(menu.children, menuItem)
        {
            [menuItem setIsEnabled: enabled ];
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting a weird Assertion Failure when presenting an email prompt in iOS Code: -
Having trouble framing this assertion in Rspec for my rails app. A User has
When my Cocoa app hits an assertion in the code, gdb gives me a
I wonder how to debug the following error: Debug Assertion failure Program: tomtoprog.exe File:
I would like to use this stacktrace method #4 implementation upon assertion failure. So
I m getting this error on performing insertItemsAtIndexPaths in UICollectionView Assertion failure in: -[UICollectionViewData
Why am I getting the following error: *** Assertion failure in -[TTTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1448.89/UITableView.m:5678
2009-08-19 11:00:06.482 Pickers[26090:20b] *** Assertion failure in -[UIDatePickerView _updateBitsForDate:andReload:animateIfNeeded:], /SourceCache/UIKit/UIKit-963.10/UIDatePicker.m:908 2009-08-19 11:00:06.483 Pickers[26090:20b] ***
When i try to delete the cell i get crash ... Assertion failure in
I am creating an app for iOS 5 and I am getting the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.