• 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
stream io & ObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stream io & ObjC


  • Subject: stream io & ObjC
  • From: Candide Kemmler <email@hidden>
  • Date: Fri, 29 Jun 2001 20:56:34 +0200

Hi !

Sorry for asking, but I'm a beginner with any language that's not Java (means I don't even know C!).

I've turned to ObjC for my current project because I felt that using Java would hamper performance, and I also got strange errors related to the java bridge that didn't make me feel comfortable with the java-cocoa option.

So now, I'm left with having to learn not only cocoa, but Objective-C also. I fear that I might have to learn a bit of C too now.

Indeed, I searched for an equivalent to java's java.io package that allows to parse a stream and read its content according to the type of data you expect. For example, if you expect to receive a polygon, you could first read the number of coordinates with readInt (), and then -let ncoords be the number of coordinates in the polygon, iterate ncoords times to read the x and y coordinates of every vertex of the polygon using readFloat ().

I didn't find such functionality in the Foundation classes. I downloaded 2 libraries (frameworks) from the Omni Group (namely OWF and OmniNetworking), but they seem to provide only very basic capabilities (such as reading lines of text, or an entire array of bytes at once).

I'd really appreciate some information or pointers about using an array of bytes for such things like making an int out of 4 bytes, or a float,... as a possible alternative. I'll have to use C for that, won't I ?

I'll also have to use SOAP at some point, so if someone knows about SOAP on MacOS X... But then I might be better off using Java for that particular purpose...

Thanks in advance,

Candide


  • Follow-Ups:
    • Re: stream io & ObjC
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Stream IO/SOAP on MacOS X
  • Next by Date: Initializing a string with an NSData
  • Previous by thread: Re: Stream IO/SOAP on MacOS X
  • Next by thread: Re: stream io & ObjC
  • Index(es):
    • Date
    • Thread