[Newbies] Using text morph to save characters

michael rice nowgate at yahoo.com
Tue Apr 26 12:26:14 UTC 2011

SorryI wasn't more explicit.

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.


--- On Tue, 4/26/11, Bert Freudenberg <bert at freudenbergs.de> wrote:

From: Bert Freudenberg <bert at freudenbergs.de>
Subject: Re: [Newbies] Using text morph to save characters
To: "A friendly place to get answers to even the most basic questions about Squeak." <beginners at lists.squeakfoundation.org>
Date: Tuesday, April 26, 2011, 6:24 AM

On 24.04.2011, at 17:53, michael rice wrote:

> 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?
> Two scripts:
> (1) clear1: empties out a TextMorph
> (2) addChar: inserts an 'a' or a 'b' at cursor position. Advances cursor position.
> Michael

What exactly is "not working"?

- Bert -

Beginners mailing list
Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110426/6d9fa282/attachment.htm

More information about the Beginners mailing list