Ok so I am still kind of trying to get my bearings in Objective-C and I thought I had it down but now I cam across this method. So there are is something that confuses me that I would like a detailed explanation on if possible.
The first line: 'UITouch *touch = [touches anyObject];', now to my understanding anyObject is a hashtable? But how can you define it in this context? I don't get where its defined at, I know it belongs to NSSet, but I am confused with the scope in this context...
- (BOOL)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView: [touch view]];
point = [[Director sharedDirector] convertCoordinate: point];
NSLog(@"ccTouchesMoved x=%f y=%f", point.x, point.y);
return YES;
}