MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSTextMBS class

Super class: NSViewMBS

class, Cocoa, MBS Cocoa Plugin (NSText), class NSTextMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: The Cocoa class for text controls.
Notes:
You may prefer to use the NSTextViewMBS class which is a subclass from NSTextMBS.

You can embed this view in a CustomNSViewMBS to get more events for mouse and keyboard.
Subclass of the NSViewMBS class.

Alignment Modes

Constant Value Description
NSCenterTextAlignment 2 Visually centered
NSJustifiedTextAlignment 3 Fully-justified. The last line in a paragraph is natural-aligned.
NSLeftTextAlignment 0 Visually left aligned
NSNaturalTextAlignment 4 Indicates the default alignment for script.
NSRightTextAlignment 1 Visually right aligned

Writing Direction

Constant Value Description
NSWritingDirectionLeftToRight 0 The writing direction is left to right.

Available in Mac OS X v10.2 and later.
NSWritingDirectionNatural -1 The writing direction is determined using the Unicode Bidi Algorithm rules P2 and P3. Default.

Available in Mac OS X v10.4 and later.
NSWritingDirectionRightToLeft 1 The writing direction is right to left.

Available in Mac OS X v10.2 and later.

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

Sub classes:

Some methods using this class:

Some events for this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS Cocoa Plugin, MBS CocoaBase Plugin.


NSTextFieldMBS   -   NSTextStorageMBS




Links
MBS REAL studio tutorial videos