|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Re: [sc-users] Cross-Platform GUI Syntax; WAS: Creating a SynthDef that only lasts a certain amount of timeOn Sunday 19 April 2009 07:54:16 Scott Wilson wrote:
> Moving to dev. > > This works: > > + Object { > > *classRedirect { ^this } > > } > > + ViewRedirect { > > *classRedirect { ^this.implClass } > > } > > Then in Process: > > openCodeFile { > var string, class, method, words; > string = interpreter.cmdLine; > if (string.includes($:), { > words = string.delimit({ arg c; c == $: }); > class = words.at(0).asSymbol.asClass; > if (class.notNil, { > method = class.findMethod(words.at(1).asSymbol); > if (method.notNil, { > method.filenameSymbol.asString.openTextFile(method.charPos, -1); > }); > }); > },{ > class = string.asSymbol.asClass.classRedirect; > if (class.notNil, { > class.filenameSymbol.asString.openTextFile(class.charPos, -1); > }); > }); > } > > I suspect the Cmd-J method business should stay as is. > > So assuming this works in Linux, we would just need a classvar in > ViewRedirect to check if this is desired. Default = true? More an editor issue than platform.... I'm not exactly sure how the interaction between SC and emacs goes in this case... There is some autocompletion magic going so you only have to type a partial classname or method and can use tab in the minibuffer to find possible completions. I'm not sure if then emacs opens the file by itself, or gives control back to SC to do that. But in any case, I don't think this will break it. sincerely, Marije _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/ |
|
|
Re: Re: [sc-users] Cross-Platform GUI Syntax; WAS: Creating a SynthDef that only lasts a certain amount of timeOn 19 Apr 2009, at 15:19, nescivi wrote: > > More an editor issue than platform.... > > I'm not exactly sure how the interaction between SC and emacs goes > in this > case... There is some autocompletion magic going so you only have to > type a > partial classname or method and can use tab in the minibuffer to find > possible completions. > I'm not sure if then emacs opens the file by itself, or gives > control back to > SC to do that. > > But in any case, I don't think this will break it. Okay, I'll commit this then. ViewRedirect.redirectQueries = true means you get the current implementation class. Default is false (least surprise, if perhaps most annoyance). S. _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/ |
|
|
Re: Re: [sc-users] Cross-Platform GUI Syntax; WAS: Creating a SynthDef that only lasts a certain amount of timeThis could also be adapted to work the same way for help, but that
would require more serious cross-[platform, editor] coordination, so I think it should wait. S. On 20 Apr 2009, at 18:32, Scott Wilson wrote: > > On 19 Apr 2009, at 15:19, nescivi wrote: > >> >> More an editor issue than platform.... >> >> I'm not exactly sure how the interaction between SC and emacs goes >> in this >> case... There is some autocompletion magic going so you only have >> to type a >> partial classname or method and can use tab in the minibuffer to find >> possible completions. >> I'm not sure if then emacs opens the file by itself, or gives >> control back to >> SC to do that. >> >> But in any case, I don't think this will break it. > > Okay, I'll commit this then. > > ViewRedirect.redirectQueries = true means you get the current > implementation class. Default is false (least surprise, if perhaps > most annoyance). > > S. > > _______________________________________________ > sc-dev mailing list > > info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml > archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ > search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/ _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/ |
| Free embeddable forum powered by Nabble | Forum Help |