I ’m in the process of migrating my game from cocos2d-iphone to cocos2d-x, so I may have a few questions these days
I was wondering what’s the best way to implement delegates in cocos2d-x ?
In objective-C I have a navigation layer with a delegate like this :
I hate to be dense, but every time I try and declare a CCLayer subclass as CCListViewDelegate as shown in CCLayer with CCTouchDelegate (or any other delegate) the compiler complains at LAYER_CREATE_FUNC(MyLayerClass) saying “Allocating an object of abstract class ‘MyClassName’”. blue eur or anybody else, any chance I can beg a snippet of code as an example?