Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find protocol declaration for CCTargetTouchDelegate/CCStandardTouchDelegate

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?

like image 894
Ben Trengrove Avatar asked Nov 07 '12 04:11

Ben Trengrove


1 Answers

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

like image 113
Ben Trengrove Avatar answered Oct 08 '22 17:10

Ben Trengrove