'sharedDispatcher' is deprecated

iphone

Solution

Take a look at `ccDeprecated.h`, it says to use:

`[[CCDirector sharedDirector] touchDispatcher]`

Problem

I've added this function. ``` - (void) registerWithTouchDispatcher { [[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES]; } ``` error: `sharedDispatcher` is deprecated what does it mean and what shall I do?

Original source

Related problems