title: Cocos2d detect touch on a specific sprite
body: <p>I have this sprite that I am trying to detect if user touched it and post an NSLOG. I have read some cocos2d posts on detecting sprite touch on stackoverflow, but I got a bit confused and don't quite understand. Any help will be appreciated.I will post my sprite below.</p>
  
  <pre><code>chew = [CCSprite spriteWithFile:@"chew.png" rect:CGRectMake(0, 0, 152, 152)];
  chew.position = ccp(100, 300);
  [self addChild:chew];
  </code></pre>
  
  <p>Figured it out</p>
  
  <pre><code>-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  {
      NSSet *allTouches = [event allTouches];
      UITouch* touch = [touches anyObject];
      CGPoint location = [touch locationInView: [touch view]];
      location = [[CCDirector sharedDirector] convertToGL:location];
  
      if (CGRectContainsPoint( [ chew   boundingBox], location)) 
      {
          NSLog(@"touched");
      }
  }
  </code></pre>