[squeak-dev] Squeak5.2 save morph / load morph from file

Chris Muller asqueaker at gmail.com
Wed Jan 16 23:48:26 UTC 2019

Ma Serializer supports BookMorphs.

It's part of the "Ma Base" package available in SqueakMap.

After installing, in an inspector of your BookMorph:

   MaObjectSerializer new fileOut: self toFileNamed: 'myBookMorph.obj'
in: Directory default    "do it"

then, in the 5.2 image after installing "Ma Base":

  MaObjectSerializer fileIn: FileDirectory default / 'myBookMorph.obj'
   "inspect it"


On Sat, Jan 12, 2019 at 4:28 PM Philip Bernhart
<philip.bernhart at posteo.de> wrote:
> Hi,
> I have the annoyance of not being able to load a saved
> morph from a file within squeak5.2-18229-64bit-201810190412-Linux
> which also applies to squeak5.1-16549-64bit-201608171728-Linux.
> The morph I want to load is a book morph and other morphs seem
> to be restorable.
> When I try to load it it fails with a positional stream error,
> with my humble debugging skills I tried to investigate it but
> failed in finding the cause.
> I attached the file which makes the problems, maybe someone
> with more skills can find the cause. It was originally generated
> within a fresh squeak5.1-18229-64bit-201810190412-Linux image.
> Thanks,
> Philip

More information about the Squeak-dev mailing list