• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using the Document Architecture and Reading files one buffer at a time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using the Document Architecture and Reading files one buffer at a time


  • Subject: Using the Document Architecture and Reading files one buffer at a time
  • From: Korei Klein <email@hidden>
  • Date: Thu, 23 Jul 2009 14:47:12 -0500

I'm trying to use the document architecture in an application that will create documents for some very big files. I'd like not to have an entire file in memory at once. To use the document architecture, I'm subclassing NSDocument and overriding the readFromFileWrapper method. As far as I can tell, there is no way to use a FileWrapper object to read a file one buffer at a time.

Can I find out a filename, or a filehandle from a FileWrapper? Alternatively, is there any way to have an NSDocument using the document architecture which reads its files one buffer at a time?





_______________________________________________

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


  • Prev by Date: Using the Document Architecture and Reading files one buffer at a time
  • Next by Date: SpeechSynthesis
  • Previous by thread: Re: Using the Document Architecture and Reading files one buffer at a time
  • Next by thread: SpeechSynthesis
  • Index(es):
    • Date
    • Thread