Login  Register

Re: STBInFiler and events

Posted by Vladimir Musulainen on Apr 16, 2004; 6:33am
URL: https://forum.world.st/STBInFiler-and-events-tp3370347p3370367.html

> Wouldn't it be easier to just keep it as simple as possible and restore the
> events yourself?
>
> ClassA>>restoreFrom: aStream
>     collectionA := Object binaryReadFrom: aStream. "or whatever"
>     collectionA do: [:eachB |
>         eachB restoreEvents.
>         eachB when: #change send: #changeObjectsB to: self]
>
> ClassB>>restoreEvents
>     collectionB do: [:eachC |
>                 eachC when: #change send: #changeObjectsC to: self]

Am I right understand, that I must save collectionB and CollectionC
to other file(s) (for example).
 
I restore object of class A (entry point to my model) standart
STBOutFiler, after that, I restore myself  objects from collectionB
and collectionC.

It's correct?