• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Intercept Save when closing NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Intercept Save when closing NSDocument
      • From: Uli Kusterer <email@hidden>
References: 
 >Intercept Save when closing NSDocument (From: Trygve Inda <email@hidden>)
 >Re: Intercept Save when closing NSDocument (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Intercept Save when closing NSDocument
  • Next by Date: Re: Intercept Save when closing NSDocument
  • Previous by thread: Re: Intercept Save when closing NSDocument
  • Next by thread: Re: Intercept Save when closing NSDocument
  • Index(es):
    • Date
    • Thread