MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
NSTextMBS.alignCenter
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object).
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object).
NSTextMBS.alignLeft
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object).
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object).
NSTextMBS.alignment as integer
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The text alignment.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The text alignment.
Notes: (Read and Write computed property)
NSTextMBS.alignRight
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object).
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object).
NSTextMBS.backgroundColor as NSColorMBS
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The background color.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The background color.
Notes: (Read and Write computed property)
NSTextMBS.baseWritingDirection as integer
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The initial writing direction used to determine the actual writing direction for text.
Notes:
The Text system uses this value as a hint for calculating the actual direction for displaying Unicode characters. You should not need to call this method directly. If no writing direction is set, returns NSWritingDirectionNatural.
Available in Mac OS X v10.4 and later.
(Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The initial writing direction used to determine the actual writing direction for text.
Notes:
The Text system uses this value as a hint for calculating the actual direction for displaying Unicode characters. You should not need to call this method directly. If no writing direction is set, returns NSWritingDirectionNatural.
Available in Mac OS X v10.4 and later.
(Read and Write computed property)
NSTextMBS.changeFont
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method changes the font of the selection for a rich text object, or of all text for a plain text object.
Notes:
If the receiver doesn't use the Font panel, this method does nothing.
This method changes the font by sending a convertFont message to the shared NSFontManager and applying each NSFont returned to the appropriate text. See the NSFontManager class specification for more information on font conversion.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method changes the font of the selection for a rich text object, or of all text for a plain text object.
Notes:
If the receiver doesn't use the Font panel, this method does nothing.
This method changes the font by sending a convertFont message to the shared NSFontManager and applying each NSFont returned to the appropriate text. See the NSFontManager class specification for more information on font conversion.
NSTextMBS.checkSpelling
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method searches for a misspelled word in the receiver's text.
Notes: The search starts at the end of the selection and continues until it reaches a word suspected of being misspelled or the end of the text. If a word isn't recognized by the spelling server, a showGuessPanel message then opens the Guess panel and allows the user to make a correction or add the word to the local dictionary.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method searches for a misspelled word in the receiver's text.
Notes: The search starts at the end of the selection and continues until it reaches a word suspected of being misspelled or the end of the text. If a word isn't recognized by the spelling server, a showGuessPanel message then opens the Guess panel and allows the user to make a correction or add the word to the local dictionary.
NSTextMBS.Constructor
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates a new text with size 100/100 and position 0/0
Example:
Notes:
On success the handle property is not zero.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates a new text with size 100/100 and position 0/0
Example:
dim t as new NSTextMBS
See also:
NSTextMBS.Constructor(Handle as Integer)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates an object based on the given NSText handle.
Example:
Notes:
The handle is casted to a NSText and the plugin retains this handle.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates an object based on the given NSText handle.
Example:
dim t as new NSTextMBS(0, 0, 100, 100)
dim v as new NSTextMBS(t.handle)
MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)
See also:
NSTextMBS.Constructor(left as double, top as double, width as double, height as double)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates a new text with the given size and position.
Example:
Notes:
On success the handle property is not zero.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates a new text with the given size and position.
Example:
dim x as new NSTextMBS(0, 0, 100, 100)
See also:
NSTextMBS.copy
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports.
NSTextMBS.copyFont
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard, as NSFontPboardType.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard, as NSFontPboardType.
NSTextMBS.copyRuler
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as NSRulerPboardType, and expands the selection to paragraph boundaries.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as NSRulerPboardType, and expands the selection to paragraph boundaries.
NSTextMBS.cut
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method deletes the selected text and places it onto the general pasteboard, in as many formats as the receiver supports.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method deletes the selected text and places it onto the general pasteboard, in as many formats as the receiver supports.
NSTextMBS.delete
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method deletes the selected text.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method deletes the selected text.
NSTextMBS.drawsBackground as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the scrollview draws its background.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the scrollview draws its background.
Notes: (Read and Write computed property)
NSTextMBS.font as NSFontMBS
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The font of the first character in the receiver's text, or of the insertion point if there's no text.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The font of the first character in the receiver's text, or of the insertion point if there's no text.
Notes: (Read and Write computed property)
NSTextMBS.importsGraphics as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Whether the receiver allows the user to import files by dragging.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Whether the receiver allows the user to import files by dragging.
Notes: (Read and Write computed property)
NSTextMBS.isEditable as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver allows the user to edit text, false if it doesn't.
Notes:
You can change the receiver's text programmatically regardless of this setting.
If the receiver is editable, it's also selectable.
(Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver allows the user to edit text, false if it doesn't.
Notes:
You can change the receiver's text programmatically regardless of this setting.
If the receiver is editable, it's also selectable.
(Read and Write computed property)
NSTextMBS.isFieldEditor as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder.
Notes:
True if the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder; false if it accepts them as text input.
See the NSWindow class specification for more information on field editors. By default, NSText objects don't behave as field editors.
(Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder.
Notes:
True if the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder; false if it accepts them as text input.
See the NSWindow class specification for more information on field editors. By default, NSText objects don't behave as field editors.
(Read and Write computed property)
NSTextMBS.isHorizontallyResizable as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: True if the receiver automatically changes its width to accommodate the width of its text, false if it doesn't.
Notes:
By default, an NSText object is not horizontally resizable.
(Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: True if the receiver automatically changes its width to accommodate the width of its text, false if it doesn't.
Notes:
By default, an NSText object is not horizontally resizable.
(Read and Write computed property)
NSTextMBS.isRichText as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the NSText allows the user to apply attributes to specific ranges of the text.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the NSText allows the user to apply attributes to specific ranges of the text.
Notes: (Read and Write computed property)
NSTextMBS.isRulerVisible as boolean
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver's enclosing scroll view shows its ruler.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver's enclosing scroll view shows its ruler.
NSTextMBS.isSelectable as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the text allows the user to select text, false if it doesn't.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the text allows the user to select text, false if it doesn't.
Notes: (Read and Write computed property)
NSTextMBS.isVerticallyResizable as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: True if the receiver automatically changes its height to accommodate the height of its text, false if it doesn't.
Notes:
By default, an NSText object is vertically resizable.
(Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: True if the receiver automatically changes its height to accommodate the height of its text, false if it doesn't.
Notes:
By default, an NSText object is vertically resizable.
(Read and Write computed property)
NSTextMBS.maxSizeHeight as double
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's maximum height.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's maximum height.
NSTextMBS.maxSizeWidth as double
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's maximum width.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's maximum width.
NSTextMBS.minSizeHeight as double
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's minimum height.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's minimum height.
NSTextMBS.minSizeWidth as double
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's maximum width.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the receiver's maximum width.
NSTextMBS.paste
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method pastes text from the general pasteboard at the insertion point or over the selection.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method pastes text from the general pasteboard at the insertion point or over the selection.
NSTextMBS.pasteFont
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method pastes font information from the font pasteboard onto the selected text or insertion point of a rich text object, or over all text of a plain text object.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method pastes font information from the font pasteboard onto the selected text or insertion point of a rich text object, or over all text of a plain text object.
NSTextMBS.pasteRuler
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method pastes paragraph style information from the ruler pasteboard onto the selected paragraphs of a rich text object.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method pastes paragraph style information from the ruler pasteboard onto the selected paragraphs of a rich text object.
NSTextMBS.readRTFDFromFile(file as folderitem) as boolean
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Attempts to read the RTFD file, returning true if successful and false if not.
Notes: file should be the path for an .rtf file or an .rtfd file wrapper, not for the RTF file within an .rtfd file wrapper.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Attempts to read the RTFD file, returning true if successful and false if not.
Notes: file should be the path for an .rtf file or an .rtfd file wrapper, not for the RTF file within an .rtfd file wrapper.
NSTextMBS.replaceCharactersInRangeWithRTF(start as integer, length as integer, rtfData as MemoryBlock)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Replaces the characters in the given range with RTF text interpreted from the given RTF data.
Notes:
This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
This method is designed for transferring text from out-of-process sources such as the pasteboard. In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of NSMutableAttributedString.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Replaces the characters in the given range with RTF text interpreted from the given RTF data.
Notes:
This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
This method is designed for transferring text from out-of-process sources such as the pasteboard. In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of NSMutableAttributedString.
NSTextMBS.replaceCharactersInRangeWithRTFD(start as integer, length as integer, rtfdData as MemoryBlock)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Replaces the characters in the given range with RTFD text interpreted from the given RTFD data.
Notes:
This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
This method is designed for transferring text from out-of-process sources such as the pasteboard. In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of NSMutableAttributedString.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Replaces the characters in the given range with RTFD text interpreted from the given RTFD data.
Notes:
This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
This method is designed for transferring text from out-of-process sources such as the pasteboard. In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of NSMutableAttributedString.
NSTextMBS.replaceCharactersInRangeWithString(start as integer, length as integer, text as string)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Replaces the characters in the given range with those in the given string.
Notes:
For a rich text object, the text is assigned the formatting attributes of the first character of the text it replaces, or of the character immediately before aRange if the range's length is 0. If the range's location is 0, the formatting attributes of the first character in the receiver are used.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of NSMutableAttributedString.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Replaces the characters in the given range with those in the given string.
Notes:
For a rich text object, the text is assigned the formatting attributes of the first character of the text it replaces, or of the character immediately before aRange if the range's length is 0. If the range's location is 0, the formatting attributes of the first character in the receiver are used.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of NSMutableAttributedString.
NSTextMBS.RTFDFromRange(start as integer, length as integer) as MemoryBlock
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns a string that contains an RTFD stream corresponding to the characters and attributes within aRange.
Notes:
Raises an NSRangeException if any part of aRange lies beyond the end of the receiver's characters.
When writing data to the pasteboard, you can use the NSData object as the first argument to NSPasteboard's setDataForType method, with a second argument of NSRTFDPboardType.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns a string that contains an RTFD stream corresponding to the characters and attributes within aRange.
Notes:
Raises an NSRangeException if any part of aRange lies beyond the end of the receiver's characters.
When writing data to the pasteboard, you can use the NSData object as the first argument to NSPasteboard's setDataForType method, with a second argument of NSRTFDPboardType.
NSTextMBS.RTFFromRange(start as integer, length as integer) as MemoryBlock
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: eturns a string object that contains an RTF stream corresponding to the characters and attributes within aRange, omitting any attachment characters and attributes.
Notes:
Raises an NSRangeException if any part of aRange lies beyond the end of the receiver's characters.
When writing data to the pasteboard, you can use the NSData object as the first argument to NSPasteboard's setDataForType method, with a second argument of NSRTFPboardType.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: eturns a string object that contains an RTF stream corresponding to the characters and attributes within aRange, omitting any attachment characters and attributes.
Notes:
Raises an NSRangeException if any part of aRange lies beyond the end of the receiver's characters.
When writing data to the pasteboard, you can use the NSData object as the first argument to NSPasteboard's setDataForType method, with a second argument of NSRTFPboardType.
NSTextMBS.scrollRangeToVisible(start as integer, length as integer)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Scrolls the receiver in its enclosing scroll view so the first characters of aRange are visible.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Scrolls the receiver in its enclosing scroll view so the first characters of aRange are visible.
NSTextMBS.selectAll
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method selects all of the receiver's text.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method selects all of the receiver's text.
NSTextMBS.selectedRange as NSRangeMBS
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The range of selected characters.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The range of selected characters.
Notes: (Read and Write computed property)
NSTextMBS.setFontForRange(font as NSFontMBS, start as integer, length as integer)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the font of characters within the given range to font.
Notes:
This method applies only to a rich text object.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRanges to include this method in an undoable action.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the font of characters within the given range to font.
Notes:
This method applies only to a rich text object.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRanges to include this method in an undoable action.
NSTextMBS.setMaxSize(width as double, height as double)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the receiver's maximum size.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the receiver's maximum size.
NSTextMBS.setMinSize(width as double, height as double)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the receiver's minimum size.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the receiver's minimum size.
NSTextMBS.setTextColorForRange(colorValue as NSColorMBS, start as integer, length as integer)
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the text color of characters within the given range to colorValue.
Notes:
Removes the text color attribute if colorValue is nil. This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Sets the text color of characters within the given range to colorValue.
Notes:
Removes the text color attribute if colorValue is nil. This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
NSTextMBS.showGuessPanel
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method opens the Spelling panel, allowing the user to make a correction during spell checking.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method opens the Spelling panel, allowing the user to make a correction during spell checking.
NSTextMBS.sizeToFit
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Resizes the receiver to fit its text.
Notes: The text view will not be sized any smaller than its minimum size, however.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Resizes the receiver to fit its text.
Notes: The text view will not be sized any smaller than its minimum size, however.
NSTextMBS.subscript
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies a subscript attribute to selected text (or all text if the receiver is a plain text object), lowering its baseline offset by a predefined amount.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies a subscript attribute to selected text (or all text if the receiver is a plain text object), lowering its baseline offset by a predefined amount.
NSTextMBS.superscript
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies a superscript attribute to selected text (or all text if the receiver is a plain text object), raising its baseline offset by a predefined amount.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method applies a superscript attribute to selected text (or all text if the receiver is a plain text object), raising its baseline offset by a predefined amount.
NSTextMBS.text as string
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The characters of the text.
Notes:
For performance reasons, this method returns the current backing store of the text object. If you want to maintain a snapshot of this as you manipulate the text storage, you should make a copy of the appropriate substring.
(Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The characters of the text.
Notes:
For performance reasons, this method returns the current backing store of the text object. If you want to maintain a snapshot of this as you manipulate the text storage, you should make a copy of the appropriate substring.
(Read and Write computed property)
NSTextMBS.textColor as NSColorMBS
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The text color.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The text color.
Notes: (Read and Write computed property)
NSTextMBS.textLength as integer
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 12.5, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the length of the text in unicode chars.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 12.5, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the length of the text in unicode chars.
NSTextMBS.toggleRuler
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method shows or hides the ruler, if the receiver is enclosed in a scroll view.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method shows or hides the ruler, if the receiver is enclosed in a scroll view.
NSTextMBS.underline
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Adds the underline attribute to the selected text attributes if absent; removes the attribute if present.
Notes:
If there is a selection and the first character of the selected range has any form of underline on it, or if there is no selection and the typing attributes have any form of underline, then underline is removed; otherwise a single simple underline is added.
Operates on the selected range if the receiver contains rich text. For plain text the range is the entire contents of the receiver.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Adds the underline attribute to the selected text attributes if absent; removes the attribute if present.
Notes:
If there is a selection and the first character of the selected range has any form of underline on it, or if there is no selection and the typing attributes have any form of underline, then underline is removed; otherwise a single simple underline is added.
Operates on the selected range if the receiver contains rich text. For plain text the range is the entire contents of the receiver.
NSTextMBS.unscript
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object).
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object).
NSTextMBS.usesFontPanel as boolean
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver uses the Font panel.
Notes: (Read and Write computed property)
property, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: A Boolean value that indicates whether the receiver uses the Font panel.
Notes: (Read and Write computed property)
NSTextMBS.writeRTFDToFile(file as folderitem, atomically as boolean) as boolean
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Writes the receiver's text as RTF with attachments to a file or directory at file.
Notes: Returns true on success and false on failure. If atomically is true, attempts to write the file safely so that an existing file at path is not overwritten, nor does a new file at path actually get created, unless the write is successful.
method, Cocoa, MBS Real Studio Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Writes the receiver's text as RTF with attachments to a file or directory at file.
Notes: Returns true on success and false on failure. If atomically is true, attempts to write the file safely so that an existing file at path is not overwritten, nor does a new file at path actually get created, unless the write is successful.
The items on this page are in the following plugins: MBS Real Studio Cocoa Plugin.
Links
MBS Realbasic Plugins