[Cuis] [SOLVED] Re: Copy vs Clone

Juan Vuletich juan at jvuletich.org
Wed May 13 21:25:37 CDT 2015


On 5/13/2015 11:05 PM, Ken.Dickey wrote:
> 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.
>

Well, but why do #clone or #shallowCopy? Isn't #copy ok?

Cheers,
Juan Vuletich




More information about the Cuis mailing list