Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSResponderMBS class.

NSResponderMBS.indent

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to indent the selection or the insertion point if there is no selection.

NSResponder declares but doesn't implement this method.

NSResponderMBS.insertBacktab

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to handle a backward tab.

A field editor might respond to this method by selecting the field before it, while a regular text object either doesn't respond to or ignores such a message. NSResponder declares but doesn't implement this method.

NSResponderMBS.insertContainerBreak

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a container break (typically a page break) at the insertion point or selection, deleting the selection if there is one.

NSResponder declares but doesn't implement this method. NSTextView implements it to insert an NSFormFeedCharacter character (0x000c).

NSResponderMBS.insertDoubleQuoteIgnoringSubstitution

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a double quote character at the insertion point without interference by automatic quote correction.

NSResponder declares but doesn't implement this method.
Available in Mac OS X v10.6 and later.

NSResponderMBS.insertLineBreak

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a line break (as distinguished from a paragraph break) at the insertion point or selection, deleting the selection if there is one.

NSResponder declares but doesn't implement this method. NSTextView implements it to insert an NSLineSeparatorCharacter character (0x2028).

NSResponderMBS.insertNewline

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a newline character at the insertion point or selection, deleting the selection if there is one, or to end editing if the receiver is a text field or other field editor.

NSResponder declares but doesn't implement this method.

NSResponderMBS.insertNewlineIgnoringFieldEditor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a line-break character at the insertion point or selection, deleting the selection if there is one.

Unlike insertNewline:, this method always inserts a line-break character and doesn't cause the receiver to end editing. NSResponder declares but doesn't implement this method.

NSResponderMBS.insertParagraphSeparator

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a paragraph separator at the insertion point or selection, deleting the selection if there is one.

NSResponder declares but doesn't implement this method.

NSResponderMBS.insertSingleQuoteIgnoringSubstitution

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a single quote character at the insertion point without interference by automatic quote correction.

NSResponder declares but doesn't implement this method.
Available in Mac OS X v10.6 and later.

NSResponderMBS.insertTab

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a tab character at the insertion point or selection, deleting the selection if there is one, or to end editing if the receiver is a text field or other field editor.

NSResponder declares but doesn't implement this method.

NSResponderMBS.insertTabIgnoringFieldEditor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Implemented by subclasses to insert a tab character at the insertion point or selection, deleting the selection if there is one.

Unlike insertTab:, this method always inserts a tab character and doesn't cause the receiver to end editing. NSResponder declares but doesn't implement this method.

NSResponderMBS.insertText(text as string)   New in 25.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 25.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Inserts the text you specify.
Example
// insert some text into a search field's text editor

Var currentEditor As NSTextMBS = NSSearchFieldControlMBS1.View.currentEditor
If currentEditor <> Nil Then
// we are in edit mode
currentEditor.insertText "Hello"
End If

text: The string to insert in the responder.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...