Validates changes to any user-typed text.
SDK
- macOS 10.0+
Framework
- App
Kit
Validates changes to any user-typed text.
SDK
Framework
func abort Editing() -> Bool
Terminates the current editing operation and discards any edited text.
func current Editor() -> NSText?
Returns the current field editor for the control.
func edit(with Frame: NSRect, editor: NSText, delegate: Any?, event: NSEvent)
Begins editing of the receiver’s text using the specified field editor.
func end Editing(NSText)
Ends the editing of text in the receiver using the specified field editor.
func select(with Frame: NSRect, editor: NSText, delegate: Any?, start: Int, length: Int)
Selects the specified text range in the receiver's field editor.