[Newbies] How to lay a morph down automatically
David Shaffer
cdshaffer at acm.org
Tue Jul 25 20:10:26 UTC 2006
Mike O'Brien wrote:
>>hm := HeadMorph new openInWorld.
>>hm position: 400 at 300.
>>
>>
>
> That blows up because "hm" turns out to be some sort
>of BlockContext, not a HeadMorph, but it gave me the right
>idea, thanks!
>
>Mike O'Brien
>_______________________________________________
>Beginners mailing list
>Beginners at lists.squeakfoundation.org
>http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
I tried that exact code under Squeak 3.7, 3.8 and 3.9beta-7041 and it
worked as expected in all of them. I don't understand why you'd get a
BlockContext back from #openInWorld. Are you sure that you typed it
correctly? Maybe you're running something which redefines #openInWorld
(Croquet?, Tweak?)?
David
More information about the Beginners
mailing list