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

2009-07-23 Thread Graham Cox
Actually, I think you'll need to cut in before the file wrapper gets made - it looks like it does load the file content into memory. So, instead, override - (BOOL)readFromURL:(NSURL *)absoluteURL ofType: (NSString *)typeName error:(NSError **)outError and then you can get at the original URL

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

2009-07-23 Thread Graham Cox
On 24/07/2009, at 5:46 AM, Korei Klein wrote: 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 overridi

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

2009-07-23 Thread Korei Klein
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

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

2009-07-23 Thread Korei Klein
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