Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
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