1) Please post at least a bit of code.. context is important :)
That being said.. you're probably passing a Sprite * reference, in
which case you'll need to.. well.. I can't remember the correct term
for it right now:
mGameSprite = [SpriteExtensionClass spriteWithImage: @"myImg.png"];
-(Sprite *) getASprite
{
if (myLogic == true)
return mGameSprite;
}
-(void) doSomethingToASprite
{
SpriteExtensionClass *mSprite = (SpriteExtensionClass *) [self getASprite];
[mSprite doSomethingThatTheExtensionClassDoes];
}
Can someone else chime in with the correct terminology? It might be
known as operator overloading.
Chris.
On Mon, Jun 22, 2009 at 6:32 PM, <cocos2d-iphone-discuss@gamesforfood.cl> wrote:
> sonnyburnette says:
>
> I have a few methods in my subclassed Sprite class that I call from my
> gamelayer. The problem is below each call I get a warning like the
> following: "Warning: 'Sprite' may not respond to '-yourMethod'"
>
> Does anyone know how I can get these to clear up? Should I just ignore
> these?
>
> Read the whole thread.