Contents

dragImageForRows(with:tableColumns:event:offset:)

Computes and returns an image to use for dragging.

Declaration

func dragImageForRows(with dragRows: IndexSet, tableColumns: [NSTableColumn], event dragEvent: NSEvent, offset dragImageOffset: NSPointPointer) -> NSImage

Parameters

  • dragRows:

    An index set containing the row indexes that should be in the image.

  • tableColumns:

    An array of table columns that should be in the image.

  • dragEvent:

    The event that initiated the drag.

  • dragImageOffset:

    An in/out parameter specifying the offset of the cursor in the image, the default value is Nszeropoint. Returning Nszeropoint causes the cursor to be centered.

Return Value

An NSImage containing a custom image for the specified rows and columns participating in the drag.

See Also

Dragging