title: Make a rectangle around a sprite in cocos2d
body: <p>Hi sorry for repeating this question but i cant figure out what am i doing wrong .. i am a noob in cocos2d ...</p>
  
  <p>here is my header file:</p>
  
  <pre><code>#import "cocos2d.h"
  #import "Mice.h"
  // HelloWorld Layer
  @interface PlayScreen : CCLayerColor
  {
  
  enter code here
  Mice *mice ;
  CGRect screenSize;
  
  CCSprite *background ;
  CCSprite *objectsBoundry;
  CCSprite *scoreBoundry ;
  
  }
  </code></pre>
  
  <p>// returns a Scene that contains the HelloWorld as the only child</p>
  
  <pre><code>+(id) scene;
  @property (retain,nonatomic)Mice *mice;
  @property (retain,nonatomic)CCSprite *background;
  @property (retain,nonatomic)CCSprite *objectsBoundary;
  @property (retain,nonatomic)CCSprite *scoreBoundary;
  
  
  - (void)rotateEnemy:(Mice *) pSprite;
  - (CGRect)rectMake ;
  @end
  </code></pre>
  
  <p>and this is my implementation file</p>
  
  <pre><code>-(id)init{
  if( (self=[super init] )) {
      mice = [Mice spriteWithFile:@"mice.png" ];
      CGRect * micerec = [mice rectMake];//gives an error here that mice may not respond //to method rectMake
  
  }
      return self;
  }
  
  -(CGRect)rectMake {
  
      CGRect aRect = CGRectMake((self.position.x-self.contentSize.width/2),
                            (self.position.y-self.contentSize.height/2),
                            self.contentSize.width,self.contentSize.height);
  
  
  return aRect;
  }
  </code></pre>
  
  <p>dont get whats wrong .. thanks for help</p>