I have an app where I respond to touchesMoved by dragging a sprite around the screen.
But... whenever I move a touch inside a sprite the app drops to the debugger. Below is the crash report, but I don't know how to fix anything because it appears to crash BEFORE it gets to any of my code. (AND even if I don't implement handlers for touchesMoved/Ended it still crashes in StandardTouchHandler at line 80 for the call "if( [delegate respondsToSelector:@selector(ccTouchesMoved:withEvent:)] )") Note in this case it is getting the right delegate (my layer class).
Using latest trunk of cocos2d (0.8+)
Application Specific Information:
iPhone Simulator 3.0 (138), iPhone OS 3.0 (7A341)
Thread 0 Crashed:
0 libobjc.A.dylib 0x94368491 _class_isInitialized + 14
1 libobjc.A.dylib 0x9435f3a7 _cache_fill + 32
2 libobjc.A.dylib 0x9435e4cb class_respondsToSelector + 72
3 NidNoyTheRoach 0x0006cf65 -[StandardTouchHandler ccTouchesEnded:withEvent:] + 52
4 NidNoyTheRoach 0x0006c65b -[TouchDispatcher touchesEnded:withEvent:] + 278
5 NidNoyTheRoach 0x000634bb -[EAGLView touchesEnded:withEvent:] + 63
6 UIKit 0x30910fdf -[UIWindow _sendTouchesForEvent:] + 507
7 UIKit 0x308faecb -[UIApplication sendEvent:] + 400
8 UIKit 0x309013e1 _UIApplicationHandleEvent + 4865
9 GraphicsServices 0x32046375 PurpleEventCallback + 1533
10 CoreFoundation 0x30245560 CFRunLoopRunSpecific + 3888
11 CoreFoundation 0x30244628 CFRunLoopRunInMode + 88
12 GraphicsServices 0x32044c31 GSEventRunModal + 217
13 GraphicsServices 0x32044cf6 GSEventRun + 115
14 UIKit 0x309021ee UIApplicationMain + 1157
15 NidNoyTheRoach 0x0000243a main + 104 (main.m:14)
16 NidNoyTheRoach 0x000023a6 start + 54