modified ivar interface to be compatible with cocos2d-iphone v2.1