self.allSprites = [CCSpriteBatchNode batchNodeWithFile:@"AllSprites.pvr.ccz"]; [self addChild:self.allSprites]; [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"AllSprites.plist"];
And then used like this:
CCSprite *okButtonSprite = [CCSprite spriteWithFrameName:@"okButton.png"];
Sometimes to do something quickly i simply put the image in my resources folder and created a sprite like this:
CCSprite *okButtonSprite = [CCSprite spriteWithFile:@"okButton.png"];
As my project is nearing completion I went through the sprites that were not in the frame and added them, then removed the images from the resources folder. I went through the code to change all the spriteWithFile to spriteWithFrameName. My question is: I forgot to change a few calls and yet the code is not producing errors and is showing the images correctly. The unchanged code should produce an error when trying to get an image from resources that does not exist. I cleaned the build and still working? What's going on... there must be some sort of cache somewhere where it is finding the image file...
I know it's funny to be complaining because code is compiling and working but I expect that this will not work on another machine. Any ideas?