Contents

registerForDraggedTypes(_:)

Registers the pasteboard types that the view will accept as the destination of an image-dragging session.

Declaration

func registerForDraggedTypes(_ newTypes: [NSPasteboard.PasteboardType])

Parameters

Discussion

Registering an NSView object for dragged types automatically makes it a candidate destination object for a dragging session. As such, it must properly implement some or all of the NSDraggingDestination protocol methods. As a convenience, NSView provides default implementations of these methods. See the NSDraggingDestination protocol specification for details.

See Also

Dragging Operations