Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

NSTextTabMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: An NSTextTab object represents a tab in an NSParagraphStyle object, storing an alignment type and location.
NSTextTab objects are most frequently used with the Application Kit's text system and with NSRulerView and NSRulerMarker objects. See the appropriate class specifications for more information on these uses.

The text system supports four alignment types: left, center, right, and decimal (based on the decimal separator character of the locale in effect). These alignment types are absolute, not based on the line sweep direction of text. For example, tabbed text is always positioned to the left of a right-aligned tab, whether the line sweep direction is left to right or right to left. A tab's location, on the other hand, is relative to the back margin. A tab set at 1.5", for example, is at 1.5" from the right in right to left text.

Feedback, Comments & Corrections

Tab Stop Types

Constant Value Description
NSCenterTabStopType 2 A center-aligned tab stop.
NSDecimalTabStopType 3 Aligns columns of numbers by the decimal point.
NSLeftTabStopType 0 A left-aligned tab stop.
NSRightTabStopType 1 A right-aligned tab stop.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples which use this class:

Blog Entries

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

NSTextStorageMBS   -   NSTextViewMBS

MBS FileMaker blog