2 categories::Core>Kernel, Language>OOP
3 summary:: Class initialization
4 related:: Classes/Class
8 When SuperCollider starts up, just after it has compiled the library, it initializes all the classes from Object down, a depth first traversal of subclasses.
10 In this method, any class that requires it may initalize classvars or other resources.
12 method:: initClassTree
14 In some cases you will require another class to be initalized before you can initalize your own. You may depend on its resources (a classvar). This can be accomplished by:
19 Class.initClassTree(OtherClass);
33 Each class will be inited once, and the OtherClass will have all of its subclasses inited before the method returns.
35 For those methods that need pre-initialized data (such as path names) should defer this function by using StartUp: