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> <array>
<dict> <dict>
<key>match</key> <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> <key>name</key>
<string>keyword.control.supercollider</string> <string>keyword.control.supercollider</string>
</dict> </dict>

View File

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