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

# textShouldBeginEditing:

Queries the delegate to determine if the text should begin editing.

```
- (BOOL) textShouldBeginEditing:(NSText *) textObject;
```

## Parameters

`textObject`

The text object

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if editing of the text should begin, otherwise <doc://com.apple.documentation/documentation/Swift/false>. Returns <doc://com.apple.documentation/documentation/Swift/true> if the delegate does not implement [`control(_:textShouldBeginEditing:)`](/documentation/AppKit/NSControlTextEditingDelegate/control(_:textShouldBeginEditing:)).

## Discussion

See the [`NSText`](/documentation/AppKit/NSText) class specification for more information on this text delegate method.

---

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)