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
- newTypes:
An array of TP40008195 CH60. See TP40009259 for descriptions of the pasteboard type identifiers.
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.