Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom object archiving



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.


References: 
 >custom object archiving (From: Dustin Mierau <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.