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

# toggleAutomaticQuoteSubstitution(_:)

Changes the state of automatic quotation mark substitution from enabled to disabled and vice versa.

## Declaration

```swift
func toggleAutomaticQuoteSubstitution(_ sender: Any?)
```

## Parameters

- `sender`: The control sending the message; may be nil.

## Discussion

Discussion Automatic quote substitution causes ASCII quotation marks and apostrophes to be automatically replaced, on a context-dependent basis, with more typographically accurate symbols.

## See Also

### Setting behavioral attributes

- [allowsUndo](appkit/nstextview/allowsundo.md)
- [isEditable](appkit/nstextview/iseditable.md)
- [isSelectable](appkit/nstextview/isselectable.md)
- [isFieldEditor](appkit/nstextview/isfieldeditor.md)
- [isRichText](appkit/nstextview/isrichtext.md)
- [importsGraphics](appkit/nstextview/importsgraphics.md)
- [setBaseWritingDirection(_:range:)](appkit/nstextview/setbasewritingdirection(_:range:).md)
- [defaultParagraphStyle](appkit/nstextview/defaultparagraphstyle.md)
- [outline(_:)](appkit/nstextview/outline(_:).md)
- [allowsImageEditing](appkit/nstextview/allowsimageediting.md)
- [isAutomaticQuoteSubstitutionEnabled](appkit/nstextview/isautomaticquotesubstitutionenabled.md)
- [isAutomaticLinkDetectionEnabled](appkit/nstextview/isautomaticlinkdetectionenabled.md)
- [toggleAutomaticLinkDetection(_:)](appkit/nstextview/toggleautomaticlinkdetection(_:).md)
- [displaysLinkToolTips](appkit/nstextview/displayslinktooltips.md)
- [isAutomaticTextCompletionEnabled](appkit/nstextview/isautomatictextcompletionenabled.md)
