SuperCollider CLASSES

StartUp

register functions to be evaluated after the startup is finished
Inherits from: AbstractSystemAction : Object

Description

StartUp registers functions to perform an action after the library has been compiled, and after the startup file has run. For instance this is used for creating SynthDef in the initClass function of class files in order to be able to make the synthdef directory customizable by the startup script.

If an object is registered, doOnStartUp must be implemented. Otherwise a function can be used.

Class Methods

*add (object)

From superclass: AbstractSystemAction

Registers an object or function to be evaluated after startup is finished.

*defer (object)

Registers an object or function to be evaluated after startup is finished, or immediately, if this has happened already.

*remove (object)

From superclass: AbstractSystemAction

Removes an object that was previously registered.

*run

Call the object in order.

Inherited class methods

Undocumented class methods

*done

*objects

*objects = value

Instance Methods

Inherited instance methods

Examples

*initClass {
    StartUp.add {
        // something to do...
    }
}