Re: notification upon restoring a version
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