Instance Method

dragImageForSelectionWithEvent:origin:

Returns an appropriate drag image for the drag initiated by the specified event.

Declaration

- (NSImage *)dragImageForSelectionWithEvent:(NSEvent *)event origin:(NSPointPointer)origin;

Parameters

event

The event that initiated the drag session.

origin

On return, the lower-left point of the image in view coordinates.

Return Value

An appropriate drag image for the drag initiated by event. May be nil, in which case a default icon will be used.

Discussion

This method is used by dragSelectionWithEvent:offset:slideBack:. It can be called by others who need such an image, or can be overridden by subclasses to return a different image.

See Also

Dragging

- dragOperationForDraggingInfo:type:

Returns the type of drag operation that should be performed if the image were released now.

- dragSelectionWithEvent:offset:slideBack:

Begins dragging the current selected text range.

acceptsGlyphInfo

A Boolean value that indicates whether the receiver accepts the glyph info attribute.