Merging various recent changes from trunk into 34 - inc sc.app menu tweak, synthdef...
[supercollider.git] / common / build / SCClassLibrary / Platform / osx / extMain.sc
blob976779250058326c8a9701aa1605458cd988ee90
1 + Main
3         platformClass { ^OSXPlatform }
5         applicationStart {
6                 ApplicationStart.run;
7         }
9         preferences {
10                 this.platform.preferencesAction.value(this)
11         }
12         preferencesAction_ { arg f;
13                 this.platform.preferencesAction_(f)
14         }
15         preferencesAction {
16                 ^this.platform.preferencesAction
17         }
18         sleep {\r                this.platform.isSleeping = true;\r               ^this.platform.sleepAction.value(this);\r        }\r      wake {\r         this.platform.isSleeping = false;\r              ^this.platform.wakeAction.value(this);\r }\r      isSleeping { ^this.platform.isSleeping }