fix sc class bug

This commit is contained in:
rob 2008-12-21 23:20:05 +00:00
parent 473e329d75
commit 9c00fef14f
2 changed files with 7 additions and 7 deletions

0
README Normal file
View File

View File

@ -4,14 +4,9 @@ SC3Controller {
classvar nodes; classvar nodes;
*initClass { *initClass {
var postToFront;
nodes = List[]; nodes = List[];
Platform.case(\osx) { Platform.case(\osx) {
postToFront = {
Document.listener.front;
};
StartUp.add { StartUp.add {
this.addListeners; this.addListeners;
} }
@ -19,7 +14,12 @@ SC3Controller {
} }
*addListeners { *addListeners {
var node; var node, postToFront;
postToFront = {
Document.listener.front;
};
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;