<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSText/isFieldEditor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSText(py)fieldEditor"
  },
  "title" : "isFieldEditor"
}
-->

# isFieldEditor

A Boolean that controls whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder.

```
var isFieldEditor: Bool { get set }
```

## Discussion

If `flag` is <doc://com.apple.documentation/documentation/Swift/true>, the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder; if `flag` is <doc://com.apple.documentation/documentation/Swift/false>, it doesn’t, instead accepting these characters as text input.

See the [`NSWindow`](/documentation/AppKit/NSWindow) class specification for more information on field editors. By default, `NSText` objects don’t behave as field editors.

---

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)