[Sprite spriteWithFile:@"hoco.png"];
This all worked hunky-dory until I deleted the resource file and replaced it with a newer version of 'hoco.png'.
Not a line of code was changed. But, on cleaning-building-running the program, the console spat this out:
[Session started at 2009-09-23 21:29:33 +0100.]
2009-09-23 21:29:38.444 bit101[13098:207] cocos2d v0.8.1
2009-09-23 21:29:38.581 bit101[13098:207] deallocing <Texture2D = 01910180 | Name = 0 | Dimensions = 0x0 | Coordinates = (0.00, 0.00)>
2009-09-23 21:29:38.583 bit101[13098:207] Image is Null
2009-09-23 21:29:38.583 bit101[13098:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: hoco.png)'
2009-09-23 21:29:38.584 bit101[13098:207] Stack: (
807902715,
2550910793,
807986683,
807986522,
810574629,
127188,
100901,
100751,
8514,
814713539,
814750709,
814739251,
814722434,
814748641,
839148405,
807687520,
807683624,
814715661,
814752238
)
Huh?