toggleSmartInsertDelete(_:)
Changes the state of smart insert and delete from enabled to disabled and vice versa.
Declaration
func toggleSmartInsertDelete(_ sender: Any?)Parameters
- sender:
The control sending the message; may be
nil.
Discussion
Controls whether the receiver inserts or deletes space around selected words so as to preserve proper spacing and punctuation.
See Also
Customizing subclass behaviors
updateFontPanel()updateRuler()acceptableDragTypesupdateDragTypeRegistration()selectionRange(forProposedRange:granularity:)rangeForUserCharacterAttributeChangerangesForUserCharacterAttributeChangerangeForUserParagraphAttributeChangerangesForUserParagraphAttributeChangerangeForUserTextChangerangesForUserTextChangeshouldChangeText(in:replacementString:)shouldChangeText(inRanges:replacementStrings:)didChangeText()smartInsertDeleteEnabled