fix README and bug in SC3Controller.sc

This commit is contained in:
rob 2008-12-21 23:18:33 +00:00
parent e032ebcf43
commit a427cec5c5
4 changed files with 41 additions and 19 deletions

6
README
View File

@ -23,7 +23,7 @@ sc3ctrl is a command line utility which uses OpenSoundControl to control
SuperCollider3.app in OSX.
Consists of a small CoreFoundation bundle written in Objective-C and a
single SuperCollider class.
single SuperCollider class.
Binary: http://www.trapdoor1.net/sc3/sc3ctrl.tar.gz
(as yet untested on anything other than 10.5)
@ -31,8 +31,8 @@ Binary: http://www.trapdoor1.net/sc3/sc3ctrl.tar.gz
Source code: http://github.com/rfwatson/sc3ctrl
Installation
============
Binary Installation
===================
1) Drag the bundle into a suitable location on your machine
(e.g. /Application/Utilities/)

View File

@ -437,6 +437,8 @@
567168010EFEF2A50047EA2B /* PBXTextBookmark */ = 567168010EFEF2A50047EA2B /* PBXTextBookmark */;
567168020EFEF2A50047EA2B /* PBXTextBookmark */ = 567168020EFEF2A50047EA2B /* PBXTextBookmark */;
567168030EFEF2A50047EA2B /* PBXTextBookmark */ = 567168030EFEF2A50047EA2B /* PBXTextBookmark */;
567168050EFEF4F20047EA2B /* PBXTextBookmark */ = 567168050EFEF4F20047EA2B /* PBXTextBookmark */;
567168060EFEF4F20047EA2B /* PBXTextBookmark */ = 567168060EFEF4F20047EA2B /* PBXTextBookmark */;
};
sourceControlManager = 567161F90EFD3E860047EA2B /* Source Control */;
userBuildSettings = {
@ -2753,9 +2755,9 @@
};
5671676A0EFEDC650047EA2B /* README */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1412, 1104}}";
sepNavSelRange = "{968, 0}";
sepNavVisRange = "{443, 992}";
sepNavIntBoundsRect = "{{0, 0}, {1412, 1120}}";
sepNavSelRange = "{1240, 0}";
sepNavVisRange = "{829, 919}";
};
};
5671676D0EFEDC740047EA2B /* PBXTextBookmark */ = {
@ -2783,7 +2785,7 @@
fRef = 5671676A0EFEDC650047EA2B /* README */;
name = "README: 68";
rLen = 0;
rLoc = 2119;
rLoc = 2133;
rType = 0;
vrLen = 1390;
vrLoc = 0;
@ -2823,7 +2825,7 @@
fRef = 5671676A0EFEDC650047EA2B /* README */;
name = "README: 68";
rLen = 0;
rLoc = 2119;
rLoc = 2133;
rType = 0;
vrLen = 1390;
vrLoc = 0;
@ -3846,6 +3848,26 @@
vrLen = 420;
vrLoc = 0;
};
567168050EFEF4F20047EA2B /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 5671676A0EFEDC650047EA2B /* README */;
name = "README: 35";
rLen = 0;
rLoc = 1240;
rType = 0;
vrLen = 919;
vrLoc = 829;
};
567168060EFEF4F20047EA2B /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 567167760EFEDCB50047EA2B /* install.rb */;
name = "install.rb: 14";
rLen = 0;
rLoc = 400;
rType = 0;
vrLen = 420;
vrLoc = 0;
};
8DD76F960486AA7600D96B5E /* sc3ctrl */ = {
activeExec = 0;
executables = (

View File

@ -216,7 +216,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>567168030EFEF2A50047EA2B</string>
<string>567168060EFEF4F20047EA2B</string>
<key>history</key>
<array>
<string>567167AA0EFEE3560047EA2B</string>
@ -272,8 +272,6 @@
<key>Layout</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
@ -359,6 +357,8 @@
<key>Dock</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@ -376,7 +376,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>567168020EFEF2A50047EA2B</string>
<string>567168050EFEF4F20047EA2B</string>
<key>history</key>
<array>
<string>567164430EFE8E370047EA2B</string>

View File

@ -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;