<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/continueTracking(last:current:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(im)continueTracking:at:inView:"
  },
  "title" : "continueTracking(last:current:in:)"
}
-->

# continueTracking(last:current:in:)

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

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

<doc://com.apple.documentation/documentation/Swift/true> if mouse tracking should continue, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method is invoked in [`trackMouse(with:in:of:untilMouseUp:)`](/documentation/AppKit/NSCell/trackMouse(with:in:of:untilMouseUp:)). The default implementation returns <doc://com.apple.documentation/documentation/Swift/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)