Classes | Control

StartUp : AbstractSystemAction : Object

register functions to be evaluated after the startup is finished

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

StartUp.add(object)

From superclass: AbstractSystemAction

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

StartUp.defer(object)

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

StartUp.remove(object)

From superclass: AbstractSystemAction

Removes an object that was previously registered.

StartUp.run

Call the object in order.

Inherited class methods

Undocumented class methods

StartUp.done

StartUp.objects

StartUp.objects = value

Instance Methods

Inherited instance methods

Examples

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