[Queation]Finding submorphs again.

Fernando Soteras fersoteras at arnet.com.ar
Sat May 13 21:54:12 UTC 2000


----------
> De: Karl Ramberg <karl.ramberg at chello.se>

> 
> I'm trying to find a way to tell a morph that it's ower another morph,
> but not report if its the world or it self. Look at the attached code.
> 

 Hi Karl,
I not sure if  i get your question right.
If you want to know wich morph at the same level of your morph in the
containement hierarchy of the enclosing pasteUpM  shares the center point
of your morph, then the
attached code should work.
In the attached code, i've modified your class in a way that it will use a
ivar called sensedMorph to state the searched morph.
Cheers,
fernando
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AmIOwerAnotherMorph.st
Type: application/octet-stream
Size: 704 bytes
Desc: AmIOwerAnotherMorph (ST Archivo)
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000513/ca512e91/AmIOwerAnotherMorph.obj


More information about the Squeak-dev mailing list