Platforms to show: All Mac Windows Linux Cross-Platform

NSAttributedStringMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Text MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A class to represent a string in the Cocoa world with attached attributes.
Var a as new NSAttributedStringMBS

if a.initWithHTML("<B>Hello</B>") then
MsgBox a.htmlString
end if


Constant Value Description
NSSpellingStateSpellingFlag 0 One of the constants for spelling state. Flag for spelling issues.

Spelling Constants.

Constant Value Description
NSSpellingStateGrammarFlag 1 Flag for grammar issues.

Underline Constants.

Constant Value Description
NSUnderlineByWord &h8000 Draw the line only underneath or through words, not whitespace.
NSUnderlinePatternDash &h0200 Draw a line of dashes.
NSUnderlinePatternDashDot &h0300 Draw a line of alternating dashes and dots.
NSUnderlinePatternDashDotDot &h0400 Draw a line of alternating dashes and two dots.
NSUnderlinePatternDot &h0100 Draw a line of dots.
NSUnderlinePatternSolid 0 Draw a solid line.
NSUnderlineStyleDouble 9 Draw a double line.
NSUnderlineStyleNone 0 Do not draw a line.
NSUnderlineStyleSingle 1 Draw a single line.
NSUnderlineStyleThick 2 Draw a thick line.

Writing Direction Constants.

Constant Value Description
NSWritingDirectionEmbedding 0 Text is embedded in text with another writing direction. For example, an English quotation in the middle of an Arabic sentence could be marked as being embedded left-to-right text.
NSWritingDirectionOverride 1 Enables character types with inherent directionality to be overridden when required for special cases, such as for part numbers made of mixed English, digits, and Hebrew letters to be written from right to left.

Sub classes:

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes

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

NSApplicationMBS   -   NSAutoreleasePoolMBS

The biggest plugin in space...