Skip navigation.
 
mlRe: NSDocument and Saving File Packages
FROM : Sherm Pendley
DATE : Thu Sep 30 22:44:10 2004

On Sep 29, 2004, at 7:39 PM, David McGavern wrote:

> I don't know if this would be appropriate for my app, because I don't
> want to save and load the entire package at once (which appears to be
> what NSFileWrapper does). Basically, there's one part of the package I
> want to load, and one part I want to save when the user actually
> invokes a Save command. I've got the loading finished, but I can't get
> the saving to work without getting the "Cannot save document" message
> :-(.


I agree - What you're trying to do doesn't fit well with the methods
you'd ordinarily override. The "standard" methods are built around the
assumption that the entire document is to be saved.

Try overriding the action methods -saveDocument:, and perhaps
-saveDocumentAs:, and/or -saveDocumentTo:, if your app supports those
operations.

sherm--

Related mailsAuthorDate
mlNSDocument and Saving File Packages David McGavern Sep 29, 05:05
mlRe: NSDocument and Saving File Packages Sherm Pendley Sep 29, 06:04
mlRe: NSDocument and Saving File Packages David McGavern Sep 30, 01:39
mlRe: NSDocument and Saving File Packages Sherm Pendley Sep 30, 22:44