spritebuilder / SpriteBuilder

Objective-C Game Development Suite
http://www.spritebuilder.com/
Other
740 stars 292 forks source link

CCBFile owner var assignments are nil #1601

Closed johngirvin closed 9 years ago

johngirvin commented 9 years ago

I have a MainMenu with several sub-pages loaded as CCB files.

The MainMenu scene is loaded with [[CCBReader reader] loadWithData:... owner:owner] where owner is an instance of a custom class in my game.

Within MainMenu, each subpage file is assigned to an owner var in SpriteBuilder. 1

At runtime the set accessors for the subpage variables are invoked properly, but the value set is nil. 3

Up the call stack one level to -[CCBReader readNodeGraphParent:] CCBReader.m:1501, you can see the target and property have been found but node is nil: 4

This is an old Cocos 3.0 / SB 1.0.6 project that I've imported in to SB 1.4.9 and I'm attempting to port to Cocos 3.4. The game is built in Cocos and loads the SB files for the front end user interface programmatically. Obviously it worked in 3.0/1.0.6, but doesn't in 3.4/1.4.9

SB Version: 1.4.9 SB Revision: eea568a5c7

johngirvin commented 9 years ago

Forget it, was something dumb I was doing.