Re: Intercept Save when closing NSDocument
Re: Intercept Save when closing NSDocument
- Subject: Re: Intercept Save when closing NSDocument
- From: Jens Alfke <email@hidden>
- Date: Fri, 10 Feb 2017 09:23:42 -0800
> On Feb 10, 2017, at 9:19 AM, Keary Suska <email@hidden> wrote:
>
> I would start by overriding -saveDocument: and -saveDocumentAs: in your NSDocument subclass with a breakpoint so I can see what is being done.
Even easier: wait for the save dialog to appear, then hit the Pause button in the debugger and look at the backtrace to see the entire call chain. Look for any NSDocument method that you can override.
—Jens
_______________________________________________
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