addObject() wasn't working because Container has add methods for all object types, of which Object is one of them. This overrides the other addObject(), which funnily enough also depends on the original addObject().
It makes sense to rename addObject() to addChild(), as well as all other child-related functions, to avoid confusion.
addObject() wasn't working because Container has add methods for all object types, of which Object is one of them. This overrides the other addObject(), which funnily enough also depends on the original addObject().
It makes sense to rename addObject() to addChild(), as well as all other child-related functions, to avoid confusion.