presentedSubitem(at:didLose:)
Tells the delegate that the item inside the presented directory lost an existing version.
Declaration
optional func presentedSubitem(at url: URL, didLose version: NSFileVersion)Parameters
- url:
The URL of the item inside the presented directory that lost a version. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.
- version:
The file version object containing information about the version that was removed.
Discussion
Your delegate can use this method to determine how to handle the loss of the specified file version. For an old version, you might not have to do anything. However, if your application is currently using the lost version, you would need to update your application’s user interface or prompt the user about how to proceed.