Advice on squeaklets needed

Michael Rueger m.rueger at acm.org
Mon Dec 18 07:16:40 UTC 2000



> I have a squeak application that I want to turn into a squeaklet.  The
> app consists of:
...
> Now, my question is what is the best way to deliver this so as to keep
> the download size and the compilation time smallest?
> 
...
> My current thinking was that the squeaklet would load and compile a
> short script which would download the other components, unzip and
> compile them, then start the application.  Does anyone know any better
> way?

The parameter tag "src" in the embed statement of the Squeaklet web page
points to the script that will be executed at startup (see
PluginLauncher), so your current thinking is correct :-)

To store code into an ImageSegment have a look at the
CodeLoader>>utilities category and to load it at the other Squeaklet
examples, e.g.
http://www.squeaklet.com/NPSqueak/examples/hangman/simple/hangman.sts

The utility code in CodeLoader currently only supports complete
categories or classes, so you would need to fileIn other code snippets
via source fileIn. (or extend the CodeLoader methods ;-) )

For loading the other resources (bmps and data files) you should make
use of the HTTPLoader.

Michael


-- 
 "To improve is to change, to be perfect is to change often." 
                                            Winston Churchill
+------------------------------------------------------------+
| Michael Rueger    m.rueger at acm.org      ++1 (310) 937 7196 |
+------------------------------------------------------------+





More information about the Squeak-dev mailing list