Instance Property

draggedImage

Returns the image being dragged.

Required.

Declaration

@property(readonly) NSImage *draggedImage;

Return Value

The image being dragged.

Discussion

This image object visually represents the data put on the pasteboard during the drag operation; however, it is the pasteboard data and not this image that is ultimately utilized in the dragging operation.

This method returns non-nil for a local drag, but nil for a cross-process drag. With the new multi-image dragging capabilities, a cross-process destination may participate and change the drag image. But it still cannot get the current drag image.

See Also

Getting Image Information

draggedImageLocation

Returns the current location of the dragged image’s origin.

Required.