1 class:: ApplicationStart
2 summary:: register functions to be evaluated on Application start
3 related:: Classes/StartUp, Classes/ServerBoot
4 categories:: Control, Platform>OSX
8 Available in OSX SuperCollider.app only.
10 ApplicationStart allows you to register functions or objects to perform an action only on application start.
11 The functions will be evaluated last; After the library has been compiled, the startup file has run and StartUp actions have been evaluated.
13 See also link::Classes/StartUp:: for functions that are evaluated emphasis::every:: time the ClassLibrary is recompiled.
18 Registers an object or function. Objects will be receive a strong::doOnApplcationStart:: message on application start. Functions will be evaluated.
21 Removes a function that was previously registered.
24 Evaluates the functions or objects in order.
31 ApplicationStart.add {
32 // something to do when the app has been launched...
40 ApplicationStart.add(this);
42 *doOnApplicationStart { "something started".postln }