To read, you would need a #readFrom: method, or something similar. Just
like #storeOn:, only for the opposite action. Also, you would probably
Cheers,
Nico
Brad Midgley <
bmid...@gmail.com> writes:
> I sent a pull request for a LocalStorageStream that reads from local
> storage at init and saves out at flush/close. I hope it looks ok.
>
> I see storeOn implemented here and there.
>
> |s|
> s := StringStream new setCollection: '' ; setStreamSize: 0; yourself.
> (HashedCollection new at: 'key' put: 'value'; yourself) storeOn: s.
> s contents
>
> generates '#{'key'->'value'}' but how am I supposed to reanimate this? If
> I implement Object#readFrom: should it call into the compiler?
>
> On Friday, December 28, 2012, Nicolas Petton wrote:
>
>>
>> Indeed, I didn't remember about this one :)
>>