I\'m trying to implement a design as follows:
Touch class : acts as an interface, several classes inherit from it: MoveTouch class
Touch
MoveTouch
You need to test for the class type:
for (Touch *t in touches) { if ([t isKindOfClass:[MoveTouch class]]) { MoveTouch *mt = (MoveTouch *)t; // do what you want with mt } }