To follow up a little on Tony's response...<br><br>Code reuse is only
as good as it is reuseable.&nbsp;&nbsp;This method is clearly not
reuseable.&nbsp;&nbsp;So, I would agree with Tony that you do some
refactoring.&nbsp;&nbsp;Before you do, make sure there is a test in
place so that you know you aren't breaking anything else.<br><br>You
may end up refactoring this message so that the current implementation
is the default, but then you add another message to make it more
generic.&nbsp;&nbsp;This is an excellent opportunity for you to dig
deeper into the world of Smalltalk.<br><br>Some hints for the road:<br>
<ol>
  <li>Alt+n (senders of this message) will show you where this message is potentially being used</li>
  <li>Alt+m (implementors of this message) may also be helpful</li>
  <li>World Menu &gt; Open &gt; Method Finder (excellent for finding Methods that can do XYZ given the parameters A, B, &amp; C)<br>
  </li>
  <li>Test! Test! Test!</li>
  <li>&quot;Branch&quot; and work</li>
  <ol>
    <li>Create a new ChangeSet and a new version of your image</li>
    <li>do your in this new version</li>
    <li>when you are confident you have it all working file it out and then back in to your original image</li>
    <li>if it works in the original image the way you expected and no tests
break, package it up and release it (perhaps as an .mcz as Tony
suggested)<br>
    </li>
  </ol>
</ol>
<br>
On 5/26/05, <a href="mailto:seaside@fbeausoleil.ftml.net">seaside@fbeausoleil.ftml.net</a> &lt;<a href="mailto:seaside@fbeausoleil.ftml.net">seaside@fbeausoleil.ftml.net</a>&gt; wrote:<br>&gt; Hello, Tony,<br>&gt; <br>&gt; Thanks for the response.
<br>&gt; <br>&gt; Tony Garnock-Jones said the following on 2005-05-26 11:29:<br>&gt; &gt; Look at Form&gt;&gt;asMIMEDocument, which reads as follows in Seaside 2.5b3:<br>&gt; &gt;<br>&gt; &gt; asMIMEDocument<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; | aStream |
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; aStream := (RWBinaryOrTextStream on: '').<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; GIFReadWriter putForm: (self asFormOfDepth: 8)<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onStream: aStream.<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; ^MIMEDocument contentType: 'image/gif' content: aStream contents
<br>&gt; <br>&gt; I found that method.&nbsp;&nbsp;Am I supposed to just change it ?&nbsp;&nbsp;I'm coming from<br>&gt; the Java world, and am uncomfortable doing just that.<br>&gt; <br>&gt; On the other hand, if you suggest I should copy the implementation to do
<br>&gt; what I want, into my own component, I thought Smalltalk was the test-bed<br>&gt; of code reuse ?<br>&gt; <br>&gt; Sorry for not understanding as quickly as you might think I should have.<br>&gt; <br>&gt; Bye !<br>
&gt; François<br>&gt; <br>&gt; _______________________________________________<br>&gt; Seaside mailing list<br>&gt; <a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br>&gt; <a href="http://lists.squeakfoundation.org/listinfo/seaside">
http://lists.squeakfoundation.org/listinfo/seaside</a><br>&gt; <br><br><br>-- <br>Jason Rogers<br><br>&quot;I am crucified with Christ: nevertheless I live; yet not I,<br>but Christ liveth in me: and the life which I now live in 
<br>the flesh I live by the faith of the Son of God, who loved <br>me, and gave himself for me.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;Galatians 2:20&nbsp;&nbsp;<br>