Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Text
Last updated at 2:35 am UTC on 21 November 2003
Text is a class which is similar to String. But the Text objects may include emphasis attributes (italics, bold ..) as well. Text is a wrapper on class String.

Every character may have its own attributes. There is a space efficient way to store them in the runs instance variable. Only the ones needed are stored there and only when they change.

Class hierarchy: (Squeak 3.3a-4664)

ProtoObject #()
Object #()
Collection #()
SequenceableCollection #()
ArrayedCollection #()

Text #('string' 'runs')



A simple way to create a Text object:

 Text fromString: 'hello world!'


Boris Gaernter sent some additional documenation to the mailing list on 12-June-2003; see also TextStream