Re: Auto-saving documents
Re: Auto-saving documents
- Subject: Re: Auto-saving documents
- From: Kyle Sluder <email@hidden>
- Date: Sun, 1 Feb 2009 23:27:15 -0500
On Sun, Feb 1, 2009 at 6:52 PM, Chris Idou <email@hidden> wrote:
> I want my app to automatically save a document when the user closes its window, without prompting the user.
What do you want to do if the user hasn't saved the document? Do you
want to prompt the user, save to a default location, or abandon the
document?
> I had thought I'd found a solution by overriding
> - (void)canCloseDocumentWithDelegate:(id)delegate shouldCloseSelector:(SEL)shouldCloseSelector contextInfo:(void*)contextInfo
> to call saveDocument: in the NSDocument. But apparently saveDocument can call canCloseDocumentWithDelegate: resulting in an endless loop.
What makes you think that?
--Kyle Sluder
_______________________________________________
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