[Cuis] [SOLVED] Re: Copy vs Clone

Ken.Dickey Ken.Dickey at whidbey.com
Wed May 13 21:05:33 CDT 2015


On Wed, 13 May 2015 15:41:00 -0700
"Ken.Dickey" <Ken.Dickey at whidbey.com> wrote:

> 	^aMorph clone "parent has aMorph copy"

Ah.  Figured it out.

When a Morph duplicated by clone or shallowCopy, the location (a MorphicTranslation) is shared, so when the hand moves, the location in the original Morph is set to the offset of the hand within the World PasteUpMorph.

The solution is to set the location in the clone/shallowCopy to a new MorphicTranslation.

-- 
-KenD

PS: I did get and search the online copy of the blue book (with negative result).  Thanks to all!




More information about the Cuis mailing list