I'm having a really strange error. I was changing some UIKit hookup around and suddenly my app stopped displaying anything. I've looked at this for about 2 hours now, and simply cannot get anything to work right anymore. I finally recreated the project from scratch with only the app delegate and a single scene/layer in the project - no nibs, or anything else which might cause a problem. The FPS display ticks away, so I know the scene is running fine, yet my scheduled update function never gets called. I've even stepped into the director and watched it add the function to the list of functions to add! This is stripped down to the bare bones, and yet it still doesn't work, check it out:
@implementation CanvasLayer
/// this is the init for my layer, which I can watch being executed in the debugger just fine..
- (id) init
{
self = [super init];
if (self)
{
[self schedule:@selector(onUpdate:)];
}
return self;
}
// yet this function never gets called..
-(void)onUpdate:(ccTime)delta
{
}
Anyone come across something like this before? Any ideas?