move code execution onto AppClock, allows GUI to work

This commit is contained in:
rob 2008-12-23 11:09:28 +00:00
parent 4be601c703
commit 04e0b261f1
2 changed files with 6 additions and 4 deletions

View File

@ -18,7 +18,7 @@
<array>
<dict>
<key>match</key>
<string>\b(arg|var|classvar|this|thisThread|thisMethod|thisFunction|true|false|inf|nil)\b</string>
<string>\b(arg|var|classvar|this|thisThread|thisMethod|thisFunction|thisProcess|true|false|inf|nil)\b</string>
<key>name</key>
<string>keyword.control.supercollider</string>
</dict>

View File

@ -22,8 +22,10 @@ SC3Controller {
if(nodes.isEmpty) {
node = OSCresponderNode(nil, '/sc3ctrl/cmd') { |t, r, msg|
msg[1].asString.interpretPrint;
{ postToFront.() }.defer;
{
msg[1].asString.interpretPrint;
postToFront.();
}.defer;
}.add;
nodes.add(node);
@ -48,7 +50,7 @@ SC3Controller {
nodes.add(node);
node = OSCresponderNode(nil, '/sc3ctrl/stop') { |t, r, msg|
thisProcess.stop;
thisProcess.stop; nil;
}.add;
nodes.add(node);