<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/movement-codes-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review symbols that are no longer in active development, and their recommended replacements.

## Overview

Although these symbols are available for use, Apple is no longer actively developing them, and may remove them in a future release. Apple recommends moving away from these symbols and using their indicated replacements instead. Check the individual symbol pages for the recommended replacements.

## Topics

### Deprecated symbols

[`var NSIllegalTextMovement: Int`](/documentation/AppKit/NSIllegalTextMovement)

Currently unused.

[`var NSReturnTextMovement: Int`](/documentation/AppKit/NSReturnTextMovement)

The Return key was pressed.

[`var NSTabTextMovement: Int`](/documentation/AppKit/NSTabTextMovement)

The Tab key was pressed.

[`var NSBacktabTextMovement: Int`](/documentation/AppKit/NSBacktabTextMovement)

The Backtab (Shift-Tab) key was pressed.

[`var NSLeftTextMovement: Int`](/documentation/AppKit/NSLeftTextMovement)

The left arrow key was pressed.

[`var NSRightTextMovement: Int`](/documentation/AppKit/NSRightTextMovement)

The right arrow key was pressed.

[`var NSUpTextMovement: Int`](/documentation/AppKit/NSUpTextMovement)

The up arrow key was pressed.

[`var NSDownTextMovement: Int`](/documentation/AppKit/NSDownTextMovement)

The down arrow key was pressed.

[`var NSCancelTextMovement: Int`](/documentation/AppKit/NSCancelTextMovement)

The user cancelled the completion.

[`var NSOtherTextMovement: Int`](/documentation/AppKit/NSOtherTextMovement)

The user performed some undefined action.



---

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)