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

# isEditable

A Boolean value that controls whether the user can edit the value in the text field.

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

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, the user can select and edit text. If <doc://com.apple.documentation/documentation/Swift/false>, the user can’t edit text, and the ability to select the text field’s content is dependent on the value of [`isSelectable`](/documentation/AppKit/NSTextField/isSelectable).

For example, if an `NSTextField` object is selectable but uneditable, becomes editable for a time, and then becomes uneditable again, it remains selectable. To ensure that text is neither editable nor selectable, use [`isSelectable`](/documentation/AppKit/NSTextField/isSelectable) to disable text selection.

---

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)