Instance Method

namesOfPromisedFilesDroppedAtDestination:

Sets the drop location for promised files and returns the names of the files that the receiver promises to create there.

Required.

Declaration

- (NSArray<NSString *> *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination;

Parameters

dropDestination

A URL object specifying the drop location for promised files.

Return Value

An array of file names, which are not full paths.

Discussion

Drag destinations should invoke this method within their performDragOperation: method. The source may or may not have created the files by the time this method returns.

See Also

Obtaining Information About the Dragging Session

draggingPasteboard

Returns the pasteboard object that holds the data being dragged.

Required.

draggingSequenceNumber

Returns a number that uniquely identifies the dragging session.

Required.

draggingSource

Returns the source, or owner, of the dragged data.

Required.

draggingSourceOperationMask

Returns the dragging operation mask of the dragging source.

Required.

draggingLocation

Returns the current location of the mouse pointer in the base coordinate system of the destination object’s window.

Required.

draggingDestinationWindow

Returns the destination window for the dragging operation.

Required.

numberOfValidItemsForDrop

Specifies the number of valid items for a drop operation.

Required.