notification upon restoring a version

  • 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
  • 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 <qvacua...> 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
previous month june 2012 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Go to today