Instance Method インスタンスメソッド

namesOfPromisedFilesDropped(atDestination:)

Returns the names of the files that the receiver promises to create at a specified location.

Declaration 宣言

func namesOfPromisedFilesDropped(atDestination dropDestination: URL) -> [String]?

Parameters パラメータ

dropDestination

A URL object that identifies the location at which the promised files will be created.

Return Value 戻り値

An array of the names of files (not full paths) that the receiver promises to create at dropDestination.

Discussion 解説

This method is invoked when the drop has been accepted by the destination and the destination, in the case of another Cocoa application, invokes the NSDraggingInfo method namesOfPromisedFilesDropped(atDestination:). For long operations, you can cache dropDestination and defer the creation of the files until the draggedImage:endedAt:operation: method to avoid blocking the destination application.