[MC] post-loading action and other?

Ned Konz ned at squeakland.org
Wed Dec 29 00:28:10 UTC 2004


On Monday 27 December 2004 4:06 am, stéphane ducasse wrote:

> is there a post loading action in MC at the package level?

You can se a class-side initialize method for this.

What I do is to have a top-level "install" package, mostly empty except for a 
PackageInfo subclass. This PI subclass has a class-side initialize method 
that does post-load stuff.

Its initialize method shouldn't be called until after all the code is loaded.

> Question 2:
> --------------
>
> I have
>  pica (empty) working as a map
>   -> pica-Bot
>   -> pica-Env
>
> Is there a way to save all the packages dependent of one package (here
> pica)?

If you save pica, it should save all its dependencies too.

> Question 3:
> --------------
>
> When I have dependent packages such as
>
>  pica.2
>   (empty) working as a map
>   -> pica-Bot.2
>   -> pica-Env.4
>
> When pica-env gets pica-Env.5
> Why pica does not get a star indicating that its dependent package
> changes, since it is a
> package state changes.

Because pica.2 doesn't yet depend on pica-Env.5, I guess.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list