[Newbies] RectangleMorph vs. BlobMorph
jstraszheim at comcast.net
Mon Mar 10 03:16:28 UTC 2008
I can't be much help except to say it does the same on mine, during the
1st doit. Hitting cmd-period gives me a debug box, but the system
Clearly this is a bug. I suggest you post it to
> When I run following passages (first the code marked 1st, then the
> code marked 2nd, and last, the code marked 3rd), 1st: 100
> RectangleMorphs draw to the screen
> 2nd: they change position
> 3rd: they disappear.
> If I use BlobMorph instead of RectangleMorph, both Squeak and my
> computer freeze. Other than the obvious (don't do this with
> BlobMorph!), why is RectangleMorph ok in this circumstance whereas
> BlobMorph isn't.
> Thanks in advance for all help ....
> * * * * *
> " 1st-----doit "
> theBag := Bag new.
> x := 10.
> y := 10.
> xIncrement := 4.
> yIncrement := 4.
> 100 timesRepeat: [
> theMorph := RectangleMorph new.
> theBag add: theMorph.
> theMorph position: x at y.
> theMorph openInWorld.
> x := x + xIncrement.
> y := y + yIncrement.
> " 2nd-----doit "
> theBag do: [ :eachMorph |
> eachMorph position:
> (600 atRandom)@(600 atRandom)
> " 3rd-----doit "
> theBag do: [ :eachMorph | eachMorph delete].
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners