[Sc-devel] autoHelp?

Dan Stowell danstowell at gmail.com
Mon Nov 5 12:37:11 PST 2007


Hi -

One comment: although Object:makeHelp is a pleasant convenience, it
will be an *extremely* rarely-called method, irrelevant for most
users, and so I don't think it should "pollute" the space of Object's
methods. May I suggest using Help:makeHelp(\classname) instead?

Dan


2007/11/5, Andrea Valle <valle at di.unito.it>:
> Sorry, the opening multiline comment was not closed.
>
>
> Best
>
> -a-
>
>
>
> On 5 Nov 2007, at 12:49, Andrea Valle wrote:
> Ok, a first draft of the Helper class, as far as I am able to work at it.
>
> Code is ugly, elegance is just another matter, all the escapes made a bit
> crazy...
> In any case, as far as I have tested (macosx, sc3.1 indeed), it seems to
> work.
>
> I don't know how to write ascii in a Document without having added other
> stuff,
> so Helper writes via File an html and then reopen it.
> (Other info in the files)
>
> e.g.
> // Classes
> Helper(Server).makeHelp ;
> // with Obj extension
> Server.makeHelp ;
>
> // UGens
> Helper(SinOsc).makeHelp ;
> // with Obj extension
> SinOsc.makeHelp ;
> Pulse.makeHelp ; // only ar
> // crawls until finds ar, kr, ir
> LFNoise1.makeHelp ;
> IEnvGen.makeHelp ;
> SampleRate.makeHelp
>
>
> Best
>
> -a-
>
>
>
> On 4 Nov 2007, at 15:15, Scott Wilson wrote:
> If you want to do this, I'd recommend using the generated html as a
> template. It's ugly, but you'll be consistent with its approach, etc. When
> you load the file into SC it stores it internally as a NSAttributedString,
> and regenerates it when you save.
>
> It wouldn't be too hard btw to implement methods for tabs, margins, etc. I
> could look at this in a few days.
>
> S.
> <helper.sc>
> <objectHelpExt.sc>
> <uGenHelper.sc>
>
>
>
>
> On 4 Nov 2007, at 14:07, Andrea Valle wrote:
> Hmm, I'll take the second way and then back to the list...
>
> Best
>
> -a-
>
>
>
> --------------------------------------------------
> Andrea Valle
> --------------------------------------------------
> CIRMA - DAMS
> Università degli Studi di Torino
> --> http://www.cirma.unito.it/andrea/
> --> andrea.valle at unito.it
> --------------------------------------------------
>
> I did this interview where I just mentioned that I read Foucault. Who
> doesn't in university, right? I was in this strip club giving this guy a lap
> dance and all he wanted to do was to discuss Foucault with me. Well, I can
> stand naked and do my little dance, or I can discuss Foucault, but not at
> the same time; too much information.
> (Annabel Chong)
>
>
>
>
> _______________________________________________
> Sc-devel mailing list
> Sc-devel at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>
> --------------------------------------------------
> Andrea Valle
> --------------------------------------------------
> CIRMA - DAMS
> Università degli Studi di Torino
> --> http://www.cirma.unito.it/andrea/
> --> andrea.valle at unito.it
> --------------------------------------------------
>
> I did this interview where I just mentioned that I read Foucault. Who
> doesn't in university, right? I was in this strip club giving this guy a lap
> dance and all he wanted to do was to discuss Foucault with me. Well, I can
> stand naked and do my little dance, or I can discuss Foucault, but not at
> the same time; too much information.
> (Annabel Chong)
>
>
>
>
>
> _______________________________________________
> Sc-devel mailing list
> Sc-devel at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>
>
>


-- 
http://www.mcld.co.uk



More information about the Sc-devel mailing list