views:

19

answers:

0

Hi,

I have a LAYER class and created a protocol:

 @protocol countryControllerDelegate

 -(void)didReceiveGamePlayTimeWarning;

 @end

And i make use of that delegate in a CocosNode class.

 #import "protocolClass.h"

 myClass: CocosNode [countryControllerDelegate] {

But there is an error that "cannot find protocol declaration ". Is protocol not supported in Cocos2D? or there is another way of doing this.

Regards, ZaldzBugz