From 04e0b261f1c497b473daf652244bb925efa90263 Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 23 Dec 2008 11:09:28 +0000 Subject: [PATCH] move code execution onto AppClock, allows GUI to work --- SuperCollider.tmbundle/Syntaxes/SuperCollider.tmLanguage | 2 +- TextMate.sc | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SuperCollider.tmbundle/Syntaxes/SuperCollider.tmLanguage b/SuperCollider.tmbundle/Syntaxes/SuperCollider.tmLanguage index dddfbde..fceda41 100644 --- a/SuperCollider.tmbundle/Syntaxes/SuperCollider.tmLanguage +++ b/SuperCollider.tmbundle/Syntaxes/SuperCollider.tmLanguage @@ -18,7 +18,7 @@ match - \b(arg|var|classvar|this|thisThread|thisMethod|thisFunction|true|false|inf|nil)\b + \b(arg|var|classvar|this|thisThread|thisMethod|thisFunction|thisProcess|true|false|inf|nil)\b name keyword.control.supercollider diff --git a/TextMate.sc b/TextMate.sc index e435bb0..7c45b66 100644 --- a/TextMate.sc +++ b/TextMate.sc @@ -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);