[Q] How can I make a SketchMorph part of a package?

Lex Spoon lex at cc.gatech.edu
Thu Jul 31 16:02:06 UTC 2003


> I tried storeString, but interrupted it after a few minutes, as well as storing
> in a SmartRefStream.  Upon trying to read it back in:
> 
>   |s|
>   s _ SmartRefStream on: (FileStream readOnlyFileNamed:
> 'checkmark.SketchMorph').
>   X _ s next.
>   s close
> 
> I get an "attempt to index non-existent element in an ordered collection"
> error.  

Hmm, Morph class>>fromFileName: seems to have the necessary incantation.
 Try doing fileInObjectAndCode on the filestream, instead of invoking
SmartRefStream yourself.


Lex



More information about the Squeak-dev mailing list