[squeak-dev] [ANN] Fuel 1.8.1

H. Hirzel hannes.hirzel at gmail.com
Fri Jan 4 16:06:56 UTC 2013


Thank you Martín
for reviewing the test.

Indeed it works after correcting the typo.


A slightly different example works also fine.

In one Morphic Project I do

     FLSerializer serialize: World submorphs toFileNamed: 'myExample2.FL'.


In another I get it back with

   | r |
   r := FLMaterializer materializeFromFileNamed: 'myExample2.FL'.
   r do: [ :m | (m isKindOf: DockingBarMorph) ifFalse: [World addMorph: m.]]

In fact this recreates as well the Workspace used for serializing but
this does not matter as it can easily be closed.

Very simple to use. Nice.

--Hannes

On 1/4/13, Martin Dias <tinchodias at gmail.com> wrote:
> Hi Hannes,
>
> I tried it and then discovered the tiny typing error: actually you are
> serializing nil, because r is not initialized. For sure you wanted to
> serialize the contents of m, instead.
>
> So replacing r by m, it worked fine.
>
> :)
>
> thanks, feedback is welcome! best regards
> Martín
>
>
> On Fri, Jan 4, 2013 at 1:44 PM, H. Hirzel <hannes.hirzel at gmail.com> wrote:
>> "Load from the file"
>> | r |
>> r := FLMaterializer materializeFromFileNamed: '4coloredDots.FL'.
>> r inspect.
>> World addMorph: r.
>
>


More information about the Squeak-dev mailing list