Contents

continueTracking(last:current:in:)

Returns a Boolean value that indicates whether mouse tracking should continue in the receiving cell.

Declaration

func continueTracking(last lastPoint: NSPoint, current currentPoint: NSPoint, in controlView: NSView) -> Bool

Parameters

  • lastPoint:

    Contains either the initial location of the cursor when tracking began or the previous current point.

  • currentPoint:

    The current location of the cursor.

  • controlView:

    The NSControl object managing the receiver.

Return Value

true if mouse tracking should continue, otherwise false.

Discussion

This method is invoked in trackMouse(with:in:of:untilMouseUp:). The default implementation returns true if the cell is set to continuously send action messages to its target when the mouse button is down or the mouse is being dragged. Subclasses can override this method to provide more sophisticated tracking behavior.

See Also

Tracking the Mouse