[squeak-dev] #saveOnFile won't do [SOLVED]

Aidan Gauland wgsilkie at ihug.co.nz
Mon Dec 15 01:21:08 UTC 2008


Use SmartRefStream class>>streamedRepresentationOf: anObject.

Thanks for the help,
Aidan

Aidan Gauland wrote:
>  I'm working on a game engine, and I found the #saveOnFile method in the 
> Object class, which I can use for saving the game state, but I also want 
> to do exactly the same thing for storing the initial game state (loaded 
> when the user starts a new game) with one exception: instead of writing 
> to a file, I want to store it internally (in the image).  I can't set up 
> the game programatically, because I use the Object Explorer for building 
> the game (which works very well for this purpose, I might add; you don't 
> get that with other programming languages).
> 
>  Is there a way I can do this?




More information about the Squeak-dev mailing list