Writing rich text in a text pane to disk (for later filein)
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Fri Jul 25 16:46:36 UTC 2003
Am Freitag, 25.07.03 um 18:25 Uhr schrieb Brent Vukmer:
>
>>
>> The point is that you should use Text's own #storeOn: method
>> instead of
>> rolling your own.
>>
>
> Bert, when I played with Text >> storeOn:, I ended up with a file that
> contained a string for creating a Text object. W
>
> What's the right way to load this back into Squeak from the file? Last
> night I was using "Compiler evaluate: file text contents", which can't
> be correct.
Send #readFrom: to some class. If you expect a text, use "Text
readFrom: aStream". You can use Object, too.
-- Bert
More information about the Squeak-dev
mailing list
|