<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hilaire,<br>
<br>
On 10/24/2020 11:04 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:439fc578-c3bb-c87b-f62f-3ad930dfe9ea@drgeo.eu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="+1">Hi Juan, <br>
</font></p>
<p>What will be left to a PasteUpMorph? What a PasteUpMorph can do
a Morph can't. For DrGeo I still use a PasteUpMorph for the
drawable, but I am not sure it is mandatory, and it is for
historical reason because of tile programming then<br>
</p>
</blockquote>
<br>
Very little. The morph drag and drop, background image and some
event and halo stuff. Not sure if all that is really needed, though.<br>
<br>
<blockquote cite="mid:439fc578-c3bb-c87b-f62f-3ad930dfe9ea@drgeo.eu"
type="cite">
<p> </p>
<p>If I am right, in Squeak's PasteUpMorph the purpose is let user
drop morphs of any kind for visual programming with tiles. <br>
</p>
<p>In The Cuis base image, all instances of PasteUpMorph are
World.</p>
<p>By the way I met this funny behavior:</p>
<blockquote>
<pre><b><font color="#a11818">PasteUpMorph newWorld;newWorld;newWorld. (repeat at will)</font></b>
<b><font color="#a11818"><b><font color="#a11818">PasteUpMorph allInstances </font></b>
<b><font color="#a11818">=> #( [world] [world] [world] [world] [world]) </font></b>
PasteUpMorph allInstances
=> #( [world] [world]) </font></b></pre>
</blockquote>
<p>Duplicated World seems to vanish.</p>
</blockquote>
<br>
That's because you are not referencing them, and they get collected.<br>
<br>
<blockquote cite="mid:439fc578-c3bb-c87b-f62f-3ad930dfe9ea@drgeo.eu"
type="cite">
<p>Then:<br>
</p>
<pre><b><font color="#a11818">PasteUpMorph newWorld openInWorld</font></b></pre>
<p>makes the environment unhappy.<br>
</p>
</blockquote>
<br>
Yep. This does the trick, though:<br>
[<br>
UISupervisor stopUIProcess.<br>
w _ WorldMorph newWorld.<br>
w<br>
recreateDefaultDesktop;<br>
showTaskbar.<br>
UISupervisor spawnNewMorphicProcessFor: w.<br>
] forkAt: 41<br>
<br>
<blockquote cite="mid:439fc578-c3bb-c87b-f62f-3ad930dfe9ea@drgeo.eu"
type="cite">
<p> </p>
<p>As long as there is only one World correctly handled in Cuis,
it makes sense to safeguard the environment with a singleton or
alike behavior.<br>
</p>
<p>AFAIK, there is no such things as Squeak's Project in Cuis.</p>
</blockquote>
<br>
But it is really easy to make. I don't think we'd make people
refrain from trying.<br>
<br>
<blockquote cite="mid:439fc578-c3bb-c87b-f62f-3ad930dfe9ea@drgeo.eu"
type="cite">
<p>Take care</p>
<p>Hilaire</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://pouet.chapril.org/@hilaire">https://pouet.chapril.org/@hilaire</a></pre>
</blockquote>
<br>
Thanks,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>