Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
aString asText
Last updated at 10:24 am UTC on 12 September 2016
Instances of class String have no attributes associated with them.

With #asText you get a Text instance to which TextAttributes may be added.

 aText := aString asText

Then with

 aText asMorph

you may get a TextMorph.

Thus

 aString asText asMorph

gives a TextMorph instance.

Whereas a
 aString asMorph 

gives a StringMorph instance.