Instance Method


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


- (NSArray<NSString *> *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)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.


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 namesOfPromisedFilesDroppedAtDestination:. 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.

See Also

Dragging Options

- draggingSourceOperationMaskForLocal:

Returns an integer bit mask indicating the types of dragging operations the source object will allow to be performed on the dragged image's data.

- ignoreModifierKeysWhileDragging

Sets whether the use of modifier keys should have an effect on the type of operation performed.