Any ideas as to why this wouldn't work?
- (void) onExit
{
[self unschedule:@selector(update:)];
[self removeAllChildrenWithCleanup:YES];
[super onExit];
}
If I call unschedule within the onExit method, the update method of this node is still called as if it was still scheduled. Is there a better place I should be calling the unschedule method?