<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/updateInsertionPointStateAndRestartTimer(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(im)updateInsertionPointStateAndRestartTimer:"
  },
  "title" : "updateInsertionPointStateAndRestartTimer(_:)"
}
-->

# updateInsertionPointStateAndRestartTimer(_:)

Updates the insertion point’s location and optionally restarts the blinking cursor timer.

```
func updateInsertionPointStateAndRestartTimer(_ restartFlag: Bool)
```

## Parameters

`restartFlag`

<doc://com.apple.documentation/documentation/Swift/true> to restart the blinking cursor timer, <doc://com.apple.documentation/documentation/Swift/false> otherwise.

## Discussion

This method is invoked automatically whenever the insertion point needs to be moved; you should never need to invoke it directly, but you can override it to modify insertion point behavior.

## See Also

[`var shouldDrawInsertionPoint: Bool`](/documentation/AppKit/NSTextView/shouldDrawInsertionPoint)

A Boolean value that determines whether the receiver should draw its insertion point.

[`func drawInsertionPoint(in: NSRect, color: NSColor, turnedOn: Bool)`](/documentation/AppKit/NSTextView/drawInsertionPoint(in:color:turnedOn:))

Draws or erases the insertion point.



---

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)