<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The new characters are inserted before the current cursor position. So if the cursor is "1" then the new characters are inserted before the text. Now if the cursor is the same as the count of characters, they are inserted before the last character. You can verify that by "clearing" the Text to e.g. "X".</div><div><br></div><div>I'm not really sure what the rationale for this behavior is. I was surprised. Asking on the Squeakland list is a good idea for Etoys issues like this.</div><div><br></div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">- Bert -</span><div><font class="Apple-style-span" face="Helvetica"><br></font><div><div>On 26.04.2011, at 14:26, michael rice wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">SorryI wasn't more explicit.<br><br>I'm generating a(s) and b(s). If I initially generate two a(s) in a row, and then a b, the b gets put between the two a(s), not at either end of the string. Likewise, if I initially generate two b(s) in a row, and then an a, the a gets inserted between the two b(s), not at either end of the string, as would be expected.<br><br>Michael<br><br>--- On <b>Tue, 4/26/11, Bert Freudenberg <i>&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;<br>Subject: Re: [Newbies] Using text morph to save characters<br>To: "A friendly place to get answers to even the most basic questions about Squeak." &lt;<a href="mailto:beginners@lists.squeakfoundation.org">beginners@lists.squeakfoundation.org</a>&gt;<br>Date: Tuesday, April 26, 2011, 6:24 AM<br><br><div class="plainMail">On 24.04.2011, at 17:53, michael rice wrote:<br><br>&gt; This may not be an appropriate way to save characters in the order they are generated. This isn't working. Perhaps there's a better way?<br>&gt; <br>&gt; Two scripts:<br>&gt; (1) clear1: empties out a TextMorph<br>&gt; (2) addChar: inserts an 'a' or a 'b' at cursor position. Advances cursor position.<br>&gt; <br>&gt; Michael<br><br>What exactly is "not working"?<br><br>- Bert -<br><br><br>_______________________________________________<br>Beginners mailing list<br><a ymailto="mailto:Beginners@lists.squeakfoundation.org" href="x-msg://257/mc/compose?to=Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></div></blockquote></td></tr></tbody></table>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/mailman/listinfo/beginners<br></blockquote></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="font-size: medium;"><br class="Apple-interchange-newline"></span></span>
</div>
<br></div></body></html>