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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to