---
title: "continueTracking(last:current:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscell/continuetracking(last:current:in:)"
---

# continueTracking(last:current:in:)

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

## Declaration

```swift
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

Return Value true if mouse tracking should continue, otherwise false.

## Discussion

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

- [trackMouse(with:in:of:untilMouseUp:)](appkit/nscell/trackmouse(with:in:of:untilmouseup:).md)
- [startTracking(at:in:)](appkit/nscell/starttracking(at:in:).md)
- [stopTracking(last:current:in:mouseIsUp:)](appkit/nscell/stoptracking(last:current:in:mouseisup:).md)
- [mouseDownFlags](appkit/nscell/mousedownflags.md)
- [prefersTrackingUntilMouseUp](appkit/nscell/preferstrackinguntilmouseup.md)
- [getPeriodicDelay(_:interval:)](appkit/nscell/getperiodicdelay(_:interval:).md)
