• 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: notification upon restoring a version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notification upon restoring a version


  • Subject: Re: notification upon restoring a version
  • From: Kevin Perry <email@hidden>
  • Date: Mon, 25 Jun 2012 13:54:23 -0700

When the user enters or exits Versions, there are notifications sent out called NSWindowWillEnterVersionBrowserNotification, NSWindowDidEnterVersionBrowserNotification, etc. (see NSWindow.h)

You will know when a user chooses Restore, because the NSDocument instance will be sent -revertToContentsOfURL:ofType:error: (once the version's contents are written in place over the existing file).

[kevin perry];

On Jun 25, 2012, at 1:44 PM, qvacua <email@hidden> wrote:

> Hi,
>
> are there notifications or delegate methods of NSDocument (or
> NSDocumentController) which are called when the user invokes Versions
> and/or restores a version of a document?
>
> Thanks in advance and best,
> Tae
> _______________________________________________
>
> 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


_______________________________________________

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

References: 
 >notification upon restoring a version (From: qvacua <email@hidden>)

  • Prev by Date: notification upon restoring a version
  • Next by Date: Re: Why do we use -fobjc-arc instead of removing code with #define?
  • Previous by thread: notification upon restoring a version
  • Next by thread: Re: PDFView not displaying properly/immediately
  • Index(es):
    • Date
    • Thread