Le 24 août 08 à 09:29, Ananda Bollu a écrit :

Hi,

What is the best way to read and write data to a Stream.

In Java, DataInputStream and DataOutputStream classes provide various
serialization methods such as, readInt(), readLong(), readBoolean()
etc.

Is there anything equivalent for serializing and de-serializing in cocoa?

Thank you

Ananda

Sometime, Google can be very helpful to find this kind of information:

For example searching for : serialization cocoa
will returns as first result: Archives and Serializations Programming Guide for Cocoa.
http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/Concepts/serializations.html

This guide will explain you the difference between archiving and serialization, and will also explain you how to use thoses two way to convert objects into data. As you don't said what you're trying to do, I cannot advice you about which way you have to go.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to