On 27 November 2017 at 11:16, Alistair Grant <akgrant0710@gmail.com> wrote:
On 26 November 2017 at 13:07, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi Andy
As you saw there are plenty of solutions.
Now what I learned is that it is often better in the long to have a little object because suddenly it opens your mind and you realise that you can teach him something more.
So I often find myself realising that I created some class methods and that it was stupid better have a real little object because it can do more and in particular for open new path
So now I do not use scripts but plain little classes with nice little printOn: methods and arguments to get customized.
+1
And if you create a class method to do the most common operation(s), you can add the "<script>" pragma and a button appears in the browser to run the operation.
Often better than a printOn: is to create a #gtInspectIn: method, allowing you to display tables, graphs, etc. as appropriate in the inspector. Actually, this has worked so well that I haven't written a "real UI" for anything I use in my personal environment, which includes downloading media, all my note keeping, tracking finances, etc. Cheers, Alistair