PSPDFileCoordinationDelegate

Undocumented

  • Called after the underlaying file got modified.

    Corresponds to a presentedItemDidChange NSFilePresenter notification.

    Declaration

    Objective-C

    - (void)presentedItemDidChangeForPresenter:
        (nonnull id<NSFilePresenter>)presenter;

    Swift

    func presentedItemDidChange(for presenter: NSFilePresenter)

    Parameters

    presenter

    The requesting file presenter.

  • Called when the underlaying file is about to be deleted.

    Corresponds to a accommodatePresentedItemDeletionWithCompletionHandler: NSFilePresenter notification.

    Declaration

    Objective-C

    - (void)accommodatePresentedItemDeletionForPresenter:
                (nonnull id<NSFilePresenter>)presenter
                                   withCompletionHandler:
                                       (nonnull void (^)(NSError *_Nullable))
                                           completionHandler;

    Swift

    func accommodatePresentedItemDeletion(for presenter: NSFilePresenter, withCompletionHandler completionHandler: @escaping (Error?) -> Void)

    Parameters

    presenter

    The requesting file presenter.

    completionHandler

    Should be invoked to allow the deletion to continue.