apportable/SpriteBuilder-Reader — pull request #1 by Ben-G (2013-10-29 19:07:34+00:00)
Title: adds two lifecycle methods to custom root container classes to allow to ...

...respond to onEnter and onExit transitions

We have developers (on CocosBuilder) that use timed transitions (slide in 1 second) and want to play animations as soon as the scene appears on screen. Currently it is not possible to hook up to any callback. They have to use delayed selectors or some other workaround.

This change lets you implement to callbacks in your custom rootContainerClass:

- (void)onAppear {
CCMoveTo *moveTo = [CCMoveTo actionWithDuration:6.f position:ccp(self.contentSize.width, self.penguin.position.y)];
[self.penguin runAction:moveTo];
}

- (void)onHide {
//
}

What do you think about that change?