• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading from Streams - Convenience methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading from Streams - Convenience methods


  • Subject: Re: Reading from Streams - Convenience methods
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sun, 24 Aug 2008 16:11:28 +0200


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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >Re: Reading from Streams - Convenience methods (From: "Ananda Bollu" <email@hidden>)

  • Prev by Date: Re: ObjC 2.0, properties, KVC, special _ hacks etc.
  • Next by Date: Re: Core data entity creation design
  • Previous by thread: Re: Reading from Streams - Convenience methods
  • Next by thread: Nil Object Crashing KVO
  • Index(es):
    • Date
    • Thread