From 9c00fef14f1fb969b3cbe0300a35c771d48cee19 Mon Sep 17 00:00:00 2001 From: rob Date: Sun, 21 Dec 2008 23:20:05 +0000 Subject: [PATCH] fix sc class bug --- README | 0 TextMate.sc | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/TextMate.sc b/TextMate.sc index eaf151f..e435bb0 100644 --- a/TextMate.sc +++ b/TextMate.sc @@ -4,14 +4,9 @@ SC3Controller { classvar nodes; *initClass { - var postToFront; nodes = List[]; - Platform.case(\osx) { - postToFront = { - Document.listener.front; - }; - + Platform.case(\osx) { StartUp.add { this.addListeners; } @@ -19,7 +14,12 @@ SC3Controller { } *addListeners { - var node; + var node, postToFront; + + postToFront = { + Document.listener.front; + }; + if(nodes.isEmpty) { node = OSCresponderNode(nil, '/sc3ctrl/cmd') { |t, r, msg| msg[1].asString.interpretPrint;