Ben Trengrove
Ben Trengrove

Reputation: 8769

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?

Upvotes: 15

Views: 4375

Answers (1)

Ben Trengrove
Ben Trengrove

Reputation: 8769

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

Upvotes: 30

Related Questions