[squeak-dev] [MC] unload action and postload actions

Keith Hodges keith_hodges at yahoo.co.uk
Sat Oct 11 14:31:15 UTC 2008


Alexandre Bergel wrote:
> Dear List,
>
> I was wondering whether there is a way to specify unload action and
> postload actions when saving a monticello package?
>
> Cheers,
> Alexandre
There is a "Scripts" button in the Monticello Browser. This is supported
by Monticello 1.0 , but it depends upon whether or not the loaded
version of PackageInfo supports it.

Monticello 1.5/1.6 as loaded by
http://installer.pbwiki.com/LevelPlayingField support them. The scripts
are added as properties of PackageInfo.

There additional hooks in MC1.5 however you add the code as class
methods, and you can add the code as a class method on someone elses
package if you want to add/remove instVars to someone elses class

Methods are named like so: #mcAfterInstall* #mcAfterRemoval*
#mcOnInstall* #mcOnUninstall*

best regards

Keith



More information about the Squeak-dev mailing list