-
... ks & Library Menu Platform.case(\osx, { // put the post window where you prefer Document.listener.bounds_(Rect(Window.screenBounds.width - 400, 2, 400, 300)); Document.listener.background_(Color.blue(0.2, 0.9)); // and color it. // .alwaysO ...
-
... rings].flop.reject{|it| it.last == ""}.sort({|a, b| a.first < b.first})); } } + Document { *wordBins {|docs, minLengthOfWords = 2, stopList| var str = ""; // concatenate all string from all documents Document.allDocuments[0..4].do{|doc| str ...
-
... rview PdefAllGui(12); TdefAllGui(12).moveTo(540, 600); // customize post window Document.listener .bounds_(Rect(500, 2, 600, 270)) .background_(Color.blue(0.2)) .stringColor_(Color.yellow); Document.postColor_(Color.yellow); Shout.rect = Re ...
-
... sMethod) } *initClass { snips = Dictionary.new; Class.initClassTree(Clock); if('Document'.asClass.notNil) { Class.initClassTree(Document); }; action = { |doc, char, modifiers, unicode, keycode| if(keycode == hotkeyCode and: { modifiers bitA ...
-
+ Object { loadPath {} enpath {} loadDocument {} didLoadFromPath {} } + SequenceableCollection { loadPath { arg warnIfNotFound=true; ^this.collect { arg obj; obj.loadPath(warnIfNotFound) } } enpath { ^this.collect({ arg obj; obj.enpath }) } ...
-
... = this.makePluginSpec(name, function,specs); subtype = aSubtype; } getElement{|document, name, value| var element = document.createElement(name); element.appendChild(document.createTextNode(value)); ^element; } getPlistElement{|document| v ...
-
// using text document: ( var addr = Republic.default.broadcastAddr; // var addr = NetAddr("127.0.0.1", 57120); Blackboard(addr).start; ); // not using document // esp. linux and windows ( var addr = Republic.default.broadcastAddr; // var a ...
-
... } } + WFSPathArray { *readWFSFile {arg path = "~/scwork/wfsPathsTest.xml"; var document, file, wfsPaths, lastTime = 0; document = DOMDocument.new; file = File(path.standardizePath, "r"); document.read(file); wfsPaths = (document.getDocumen ...
-
DocumentFile { classvar <dir; *open { arg path; if(\Document.asClass.notNil, { Document.open(path); }, { path = this.standardizePath(path); ("open " + path.escapeChar($ )).unixCmd; }); } *dir_ { arg path; dir = path.standardizePath(path); } ...
-
+ Document { // search the document for a string, in either direction // returns starting position of string or nil if not found before BOF or stopString scanFor { arg start, string, stopString, increment = 1; var whileFlag = true, foundFla ...