We have a winner!<div><br></div><div>Thank you, Colin:)<br><br><div class="gmail_quote">On Wed, Aug 26, 2009 at 11:18 PM, Colin Putney <span dir="ltr">&lt;<a href="mailto:cputney@wiresong.ca">cputney@wiresong.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
On 26-Aug-09, at 10:22 PM, Ronald Spengler wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a Form (for use as a button) that I would like to serialize in a way that allows me to keep it as text in a method. I would like to do this the simplest way possible, optimizing for speed (not space.) Ideally it would look as much like this as possible:<br>

<br>
Foo&gt;&gt;someIcon<br>
    ^ #( ... ) asForm<br>
<br>
What&#39;s the best way to do this?<br>
</blockquote>
<br></div></div>
Create your form, then send #storeString to it. It will answer a Smalltalk expression that recreates the form. Then just answer that expression from your #someIcon method. OmniBrowser has a few examples of this in the class OBMorphicIcons.<br>
<font color="#888888">
<br>
Colin<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ron<br>
</div>