Hi Bert,<br><br>Thanks for the explanation. Now its cristal clear to me. <br><br>All the best,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Javier<br><br><div><span class="gmail_quote">On 10/8/07, <b class="gmail_sendername">Bert Freudenberg</b>
 &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>On Oct 8, 2007, at 0:30 , Javier Reyes wrote:
<br><br>&gt; Hello All,<br>&gt;<br>&gt; I am trying to create a button or morph that when pressed stores<br>&gt; the present Squeak image and exits Squeak. I have tried both with a<br>&gt; PluggableButtonMorph with its action associated and with a plain
<br>&gt; rectangleMorph defining its mouseDown method as follows:<br>&gt;<br>&gt; mouseDown: anEvent<br>&gt; SmalltalkImage current saveImageInFileNamed: (SmalltalkImage<br>&gt; current imageName).<br>&gt; Smalltalk quitPrimitive.
<br>&gt;<br>&gt;<br>&gt; In both cases pressing the morph performs as expected, but when I<br>&gt; try to launch that image back and the application with it, it seems<br>&gt; to be looped into that event again exiting immediately.
<br>&gt;<br>&gt; I know I am missing something important.&nbsp;&nbsp;Could someone explain me<br>&gt; what it is ?<br><br>Sure.&nbsp;&nbsp;&quot;Saving&quot; an image means simply to stop time. So time stops<br>&quot;inside&quot; of #saveImageInFileNamed:, and when you resume the image,
<br>the first thing it executes is ... quitPrimitive. That&#39;s why we have<br>that method that does both: #snapshot:andQuit:.<br><br>- Bert -<br><br><br><br></blockquote></div><br>