Teaching Image

goran.hultgren at bluefish.se goran.hultgren at bluefish.se
Tue Mar 11 16:33:41 UTC 2003


goran.hultgren at bluefish.se wrote:
[SNIP of bad english describing load scripts]
> But anyway, if you want to play with this you can easily register a
> .st.gz package on SM that simply uses the SM api to install a bunch of
> packages. Piece of cake. Typically it's code like this:
> 
> SMSqueakMap default loadUpdates.
> SMSqueakMap default installPackageNamed: 'Comanche'.
> SMSqueakMap default installPackageNamed: 'Swiki'.
> 
> ...just as simple as that, try it in a workspace and you will see them
> getting installed.

Just wanted to mention that installPackageNamed: installs the first
package found *beginning* with that name. Not very safe and definitely
not good if packages change their names. Better to use
#installPackageWithId:.

regards, Göran



More information about the Squeak-dev mailing list