You could also try SandstoneDb if you are creating instances of your objects and just want to save those instances to disk and have them automatically loaded when the image starts up...<br><br>Take care,<br><br>Rob<br><br>
<div class="gmail_quote">On Sat, Dec 13, 2008 at 10:42 PM, Aidan Gauland <span dir="ltr">&lt;<a href="mailto:wgsilkie@ihug.co.nz">wgsilkie@ihug.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Matthew Fulmer wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you look at the implementation of saveOnFile:, most of the<br>
work is done by ReadWriteStream &gt;&gt; fileOutClass:andObject:<br>
<br>
so, you can use that method to write your object out to a<br>
memory-backed ReadWriteStream rather than a disk-backed<br>
FileStream. This will give you a ByteArray of the object, which<br>
you can store as a class variable of your game or something.<br>
<br>
If you go a little deeper, you will discover SmartRefStream,<br>
which is the serializer responsible for this feature.<br>
</blockquote>
<br></div>
Ah ha! &nbsp;SmartRefStream is what I want. &nbsp;I saw that when I was poking around, but I couldn&#39;t tell if that would just give me trouble if I tried to use it for this.<br>
<br>
Thanks,<br><font color="#888888">
Aidan<br>
<br>
</font></blockquote></div><br>