1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"949.46">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; color: #0000bf}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco
; min-height: 16.0px}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica
}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica
; min-height: 17.0px}
17 p
.p8
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
18 p
.p9
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #bf0000}
19 p
.p10
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
20 span
.s1
{font: 18.0px Helvetica
}
21 span
.s2
{color: #0000bf}
22 span
.s3
{color: #000000}
23 span
.s4
{text-decoration: underline
}
24 span
.Apple-tab-span
{white-space:pre
}
28 <p class=
"p1"><span class=
"s1"><b>StartUp
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b></span><b>register functions to be evaluated after the startup is finished
</b></p>
29 <p class=
"p2"><br></p>
30 <p class=
"p3"><b>Superclass: AbstractSystemAction
</b></p>
31 <p class=
"p2"><br></p>
32 <p class=
"p3">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
<a href=
"../ServerArchitecture/SynthDef.html"><span class=
"s2">SynthDef
</span></a> in the
<b>initClass
</b> function of class files in order to be able to make the synthdef directory customizable by the startup script.
</p>
33 <p class=
"p2"><br></p>
34 <p class=
"p3">If an object is registered,
<b>doOnStartUp
</b> must be implemented. Otherwise a function can be used.
</p>
35 <p class=
"p2"><br></p>
36 <p class=
"p4"><span class=
"s3">See Also:
<a href=
"CmdPeriod.html"><span class=
"s2">CmdPeriod
</span></a>,
<a href=
"ServerBoot.html"><span class=
"s4">ServerBoot
</span></a>,
<a href=
"ServerTree.html"><span class=
"s4">ServerTree
</span></a>,
<a href=
"ServerQuit.html"><span class=
"s4">ServerQuit
</span></a></span></p>
37 <p class=
"p5"><br></p>
38 <p class=
"p6"><b>Class Methods
</b></p>
39 <p class=
"p2"><br></p>
40 <p class=
"p3"><b>*add(object)
</b></p>
41 <p class=
"p2"><br></p>
42 <p class=
"p3">Registers an object or function to be evaluated after startup is finished.
<span class=
"Apple-converted-space"> </span></p>
43 <p class=
"p2"><br></p>
44 <p class=
"p3"><b>*defer(object)
</b></p>
45 <p class=
"p2"><br></p>
46 <p class=
"p3">Registers an object or function to be evaluated after startup is finished, or immediately, if this has happened already.
</p>
47 <p class=
"p2"><br></p>
48 <p class=
"p3"><b>*remove(object)
</b></p>
49 <p class=
"p2"><br></p>
50 <p class=
"p3">Removes an object that was previously registered.
</p>
51 <p class=
"p2"><br></p>
52 <p class=
"p3"><b>*run
</b></p>
53 <p class=
"p2"><br></p>
54 <p class=
"p3">call the object in order.
</p>
55 <p class=
"p5"><br></p>
56 <p class=
"p5"><br></p>
57 <p class=
"p5"><br></p>
58 <p class=
"p5"><br></p>
59 <p class=
"p6"><b>Examples
</b></p>
60 <p class=
"p7"><br></p>
61 <p class=
"p8">*initClass {
</p>
62 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"s2">StartUp
</span>.add {
</p>
63 <p class=
"p9"><span class=
"s3"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// something to do...
</p>
64 <p class=
"p8"><span class=
"Apple-tab-span"> </span>}
</p>
65 <p class=
"p10"><br></p>
66 <p class=
"p10"><br></p>
68 <p class=
"p10"><br></p>
69 <p class=
"p10"><br></p>