Login  Register

Re: Multiple Worlds for Pharo *stable*

Posted by Aidan Gauland-2 on Jan 25, 2011; 2:58am
URL: https://forum.world.st/Multiple-Worlds-for-Pharo-stable-tp3233552p3235346.html

On Tue, Jan 25, 2011 at 03:53:36PM +1300, Aidan Gauland wrote:
> If anyone wants to have the same background in their other worlds as
> the first one, this should do it...
>
> wm := WorldManager instance.
> bgm := (wm worldNamed: 'Pharo') backgroundMorph.
> (wm worldNamed: 'AnotherWorld') backgroundMorph: bgm.

Oops!  I just noticed that the result of that code is less than ideal,
as bgm also becomes a submorph of AnotherWorld.  What's a better way
to give new worlds the same background as the first world?

--Aidan

signature.asc (205 bytes) Download Attachment