Re: Tiger Decoding problem
Re: Tiger Decoding problem
- Subject: Re: Tiger Decoding problem
- From: Nicholas Crosbie <email@hidden>
- Date: Tue, 31 May 2005 09:05:50 +1000 (EST)
Hi Dustin et al,
Thanks to all who have sent me their suggestions. I'm
sure the problem is nearly (but not yet!) solved.
The data "is a continuous bit stream with no
delimiters", in the form of unsigned binary
integers. It looks binary to me - at least, it's a
pile
of hieroglyphics when opened in a text editor.
I thought first to use NSData; however, NSData's
deserialize methods (which, to the newbie, look like
they might help me to convert the data to a human
readable form - but perhaps I'm way off track) are
deprecated in Tiger. So how would I proceed if
using NSData?
Nick
--- Dustin Voss <email@hidden> wrote:
>
> On 29 May 2005, at 5:24 PM, Nicholas Crosbie wrote:
>
> > Hi,
> >
> > Newbie problems. I'm trying to read in and
> convert
> > binary data. The (new in Tiger) appropriate code
> seems to be
> > either......
>
> If it really is *binary* data, and not pure text
> data (in whatever
> encoding), than you shouldn't be using NSString at
> all. You should be
> using [NSData dataWithContentsOfFile:] or [NSData
> dataWithContentsOfFile:options:error:] if you want
> to keep NSError
> functionality.
>
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
_______________________________________________
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