Re: custom object archiving
Re: custom object archiving
- Subject: Re: custom object archiving
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 30 Sep 2001 02:38:02 -0700
On Saturday, September 29, 2001, at 10:50 PM, Dustin Mierau wrote:
I am porting some C++ code for a protocol that uses objects sent over
tcp/ip. I have the basic classes ported to Objective-C, and now I am
ready to serialize the objects to be sent over the network. I noticed
the NSCoding protocol and NSArchiver might be useful, but I don't see
any way of customizing the data produced so I can make it conform to
this 3rd party tcp/ip based protocol. Is there a way for me to do this?
There's an extremely easy way: wrap it in an NSData object.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.