Re: to write to file except NSData*
Re: to write to file except NSData*
- Subject: Re: to write to file except NSData*
- From: Navneet Kumar <email@hidden>
- Date: Tue, 15 Apr 2008 20:36:03 +0530
ok,
so if i generate a header NSData object and write that to file, and
then then write the larger NSData object,
how will i read one NSData after the another.
How will i know what length should I read.
excuse me if this sounds very newbie to you.
Wishes,
Nick
On 15-Apr-08, at 8:30 PM, Alastair Houghton wrote:
On 15 Apr 2008, at 15:49, Nick Rogers wrote:
I will use NSKeyedArchiver to create a lot of NSData objects
before writing to file.
I can't write one whole NSData to file because i have to write in
GBs and also have to show the progress bar.
So just use NSKeyedArchiver to generate a header before each of the
larger NSData objects (for instance).
Or fill in an NSMutableData yourself, but if you do that you have
to handle endianness somehow.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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