Instance Method

dragSelectionWithEvent:offset:slideBack:

Begins dragging the current selected text range.

Declaration

- (BOOL)dragSelectionWithEvent:(NSEvent *)event offset:(NSSize)mouseOffset slideBack:(BOOL)slideBack;

Parameters

event

The event that initiated dragging the selection.

mouseOffset

The cursor’s current location relative to the mouse-down event.

slideBack

YES if the image being dragged should slide back to its original position if the drag does not succeed, NO otherwise.

Return Value

YES if the drag can be successfully initiated, NO otherwise.

Discussion

Primarily for subclasses, who can override it to intervene at the beginning of a drag.

See Also

Dragging

- dragImageForSelectionWithEvent:origin:

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

- dragOperationForDraggingInfo:type:

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

acceptsGlyphInfo

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