Re: EOs and NSData

Stefan Apelt <[email protected]> Thu, 5 Jun 2003 08:18:17 +0200
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hi Ricardo,

your mail from 05.06.2003, 02:03:

> Is there a simple way to encapsulate all instance variables of an eo
> into a single nsdata object?

There  is a method called snapshot(), that returns a dictionary of all
attributes (use KVC to get to the values).

I  am sure you can put that dictionary into a NSData and then write it
of somewhere. If you need a readable version, I would suggest having a
look  at  NSPropertyListSerialization  which  is  very useful for such
tasks.

-- 
Regards,
 Stefan