class library: implement openTextFile via openDocument
[supercollider.git] / SCClassLibrary / deprecated / deprecated-3.7.sc
blob1f9865d3d5dba0c73b80b81df4c3afa2909ddc90
1 // in 3.6, both "help" and "openHelpFile" will work fine. In 3.7, "openHelpFile" will be deprecated. In 3.8 it will be gone.
3 + Object {
4         openHelpFile {
5                 this.help
6         }
9 + String {
10         openHelpFile {
11                 this.help
12         }
15 + Method {
16         openHelpFile {
17                 this.help
18         }
21 + Quark {
22         openHelpFile {
23                 this.help
24         }
28 // openTextFile is actually the same as openDocument
29 + String {
30         openTextFile { arg selectionStart=0, selectionLength=0;
31                 this.openDocument(selectionStart, selectionLength)
32         }
35 + Symbol {
36         openTextFile { arg selectionStart=0, selectionLength=0;
37                 ^this.openDocument(selectionStart, selectionLength)
38         }