15

I have upgraded my project to the latest beta of cocos2d 2.1 and I am now receiving the errors,

Cannot find protocol declaration for CCTargetTouchDelegate

and

Cannot find protocol declaration for CCStandardTouchDelegate

How do I fix this?

Ben Trengrove
  • 8,191
  • 3
  • 40
  • 58

1 Answers1

30

As of cocos2d 2.1 beta 3 the following changes have been made to the touch delegates.

CCTargetedTouchDelegate -> CCTouchOneByOneDelegate

CCStandardTouchDelegate -> CCTouchAllAtOnceDelegate

Simply change the name of the protocol in your class declaration and the error will be fixed.

Reference: CHANGELOG

Community
  • 1
  • 1
Ben Trengrove
  • 8,191
  • 3
  • 40
  • 58