Re: large documents with doc based app
Re: large documents with doc based app
- Subject: Re: large documents with doc based app
- From: Torsten Curdt <email@hidden>
- Date: Thu, 6 Mar 2008 00:40:43 +0100
On 06.03.2008, at 00:22, j o a r wrote:
On Mar 6, 2008, at 12:19 AM, Torsten Curdt wrote:
But according to the docs NSData is limited to 2GB.
What I am wondering is... How can one handle files larger than 2GB?
Override the path / URL based methods from NSDocument instead, and
read the interesting portions of the files piece-by-piece. You
typically don't want to load all of it into RAM at once.
Are you saying that usually the whole document is loaded into memory
by default?
I though NSData would handle the access just transparently. Otherwise
that would be good to keep in mind also for files slightly smaller
than 2GB :)
cheers
--
Torsten
_______________________________________________
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