• 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: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa


  • Subject: Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 1 May 2006 15:49:12 +0200

Paul,

On 1.5.2006, at 14:29, Paul Lynch wrote:

The Cocoa approach would be to read all of the input file into an NSData,

It would not, since (*) below (incidentally, should you refrain from the terrible top-quoting, one would not have to use uglies like "(*) below").


and then reference bytes within the data object. In some ways, the Cocoa approach is more complicated - because it makes less assumptions about your data; you have assumed that your data is old style ascii, and have discovered by accident that even plain ascii can have many different encodings.

Nope, NSData does not interpret encodings the slightest bit.

On 1 May 2006, at 13:17, Phil Faber wrote:

... The file could be any size. ... (*)

--- Ondra Čada OCSoftware: email@hidden http://www.ocs.cz private email@hidden http://www.ocs.cz/oc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Accessing 8-bit bytes from a file using Cocoa (From: Phil Faber <email@hidden>)
 >Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa (From: Paul Lynch <email@hidden>)

  • Prev by Date: Re: Accessing 8-bit bytes from a file using Cocoa
  • Next by Date: Re: NSString into *arguments[]
  • Previous by thread: Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
  • Next by thread: Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
  • Index(es):
    • Date
    • Thread