Re: Saving only required files in a file wrapper?

2008-05-08 Thread Keith Blount
change, so I am hopeful... Thanks again and all the best, Keith - Original Message From: Michael Nickerson <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: Cocoa-Dev List Sent: Thursday, May 8, 2008 5:45:10 PM Subject: Re: Saving only required files in a file wrapper

Re: Saving only required files in a file wrapper?

2008-05-08 Thread Michael Nickerson
On May 8, 2008, at 7:30 AM, Keith Blount wrote: Apologies for so soon a follow up, but I've just been experimenting with -writeToURL:ofType:forSaveOperation:originalContentsURL:error: and the results are disastrous. It turns out that *every single time* it is invoked, absoluteURL is a temp

Re: Saving only required files in a file wrapper?

2008-05-08 Thread Keith Blount
write the whole thing out every time... Thanks again and all the best, Keith - Original Message From: Ken Thomases <[EMAIL PROTECTED]> To: Graham Cox <[EMAIL PROTECTED]> Cc: Keith Blount <[EMAIL PROTECTED]>; Cocoa-Dev List Sent: Thursday, May 8, 2008 3:36:05 AM Subject: Re

Re: Saving only required files in a file wrapper?

2008-05-08 Thread Keith Blount
he best way of doing this, and the (usually excellent) docs seem a little obtuse in this area. Many thanks again, Keith - Original Message From: Ken Thomases <[EMAIL PROTECTED]> To: Graham Cox <[EMAIL PROTECTED]> Cc: Keith Blount <[EMAIL PROTECTED]>; Cocoa-Dev List Sent:

Re: Saving only required files in a file wrapper?

2008-05-07 Thread Ken Thomases
On May 7, 2008, at 9:06 PM, Graham Cox wrote: On 8 May 2008, at 10:26 am, Keith Blount wrote: The trouble with all of these methods is that they tell you not to rely on fileURL My interpretation of that advice is that at the time the read... and write... methods are called, the document h

Re: Saving only required files in a file wrapper?

2008-05-07 Thread Graham Cox
On 8 May 2008, at 10:26 am, Keith Blount wrote: The trouble with all of these methods is that they tell you not to rely on fileURL My interpretation of that advice is that at the time the read... and write... methods are called, the document hasn't set up -fileURL, so in that sense you

Re: Saving only required files in a file wrapper?

2008-05-07 Thread Keith Blount
the best, Keith - Original Message From: Ken Thomases <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Wednesday, May 7, 2008 10:46:39 PM Subject: Re: Saving only required files in a file wrapper? Hi, On May 7, 2008, at 3:08 PM, K

Re: Saving only required files in a file wrapper?

2008-05-07 Thread Ken Thomases
Hi, On May 7, 2008, at 3:08 PM, Keith Blount wrote: Many thanks for your response... Sure thing. I'm happy to flail in the dark and guess wildly with the best of them. ;) Hmm, I think you're right. I overrided -saveDocument: because it looked as though -writeToURL: and all of the othe

Re: Saving only required files in a file wrapper?

2008-05-07 Thread Keith Blount
Hi Ken, Many thanks for your response... Hmm, I think you're right. I overrided -saveDocument: because it looked as though -writeToURL: and all of the other -write... methods expected you to write all the data at any one time. It's possible for my file packages to run to hundreds of megabytes,