---
title: "updateInsertionPointStateAndRestartTimer(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextview/updateinsertionpointstateandrestarttimer(_:)"
---

# updateInsertionPointStateAndRestartTimer(_:)

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

## Declaration

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

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

### Related Documentation

- [shouldDrawInsertionPoint](appkit/nstextview/shoulddrawinsertionpoint.md)
- [drawInsertionPoint(in:color:turnedOn:)](appkit/nstextview/drawinsertionpoint(in:color:turnedon:).md)

### Managing the selection

- [selectedRanges](appkit/nstextview/selectedranges.md)
- [setSelectedRange(_:)](appkit/nstextview/setselectedrange(_:).md)
- [setSelectedRange(_:affinity:stillSelecting:)](appkit/nstextview/setselectedrange(_:affinity:stillselecting:).md)
- [setSelectedRanges(_:affinity:stillSelecting:)](appkit/nstextview/setselectedranges(_:affinity:stillselecting:).md)
- [selectionAffinity](appkit/nstextview/selectionaffinity.md)
- [selectionGranularity](appkit/nstextview/selectiongranularity.md)
- [insertionPointColor](appkit/nstextview/insertionpointcolor.md)
- [selectedTextAttributes](appkit/nstextview/selectedtextattributes.md)
- [markedTextAttributes](appkit/nstextview/markedtextattributes.md)
- [linkTextAttributes](appkit/nstextview/linktextattributes.md)
- [characterIndexForInsertion(at:)](appkit/nstextview/characterindexforinsertion(at:).md)
- [updateCandidates()](appkit/nstextview/updatecandidates().md)
