Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSLayoutManagerMBS class.

NSLayoutManagerMBS.allowsNonContiguousLayout as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether noncontiguous layout is enabled.

Setting to true allows but does not require the layout manager to use noncontiguous layout, and the layout manager may in fact not do so, depending on its configuration.
(Read and Write property)

NSLayoutManagerMBS.attributedString as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the text storage object from which the NSGlyphGenerator object procures characters for glyph generation.

This method is part of the NSGlyphStorage protocol, for use by the glyph generator. For NSLayoutManager the attributed string is equivalent to the text storage.
Available in Mac OS X v10.5 and later.
(Read only property)

NSLayoutManagerMBS.backgroundLayoutEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver generates glyphs and lays them out when the application's run loop is idle.

If true, background layout is enabled; if false, the receiver performs glyph generation and layout only when necessary.
(Read and Write property)

NSLayoutManagerMBS.font as NSFontMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The font for the invisible character drawing.

Use nil font for using the font of the current text.
This method is only available if the NSLayoutManagerMBS object has been created with new NSLayoutManagerMBS, so the plugin can use the special NSLayoutManager subclass with support for invisible character drawing.
(Read and Write property)

NSLayoutManagerMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal object reference.

(Read and Write property)

NSLayoutManagerMBS.hasNonContiguousLayout as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the layout manager currently has any areas of noncontiguous layout.

There may be times at which there is no noncontiguous layout, such as when layout is complete; this method enables the layout manager to report that to clients.
(Read only property)

NSLayoutManagerMBS.hyphenationFactor as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The threshold controlling when hyphenation is done.

factor: The hyphenation factor, ranging from 0.0 to 1.0. By default, the value is 0.0, meaning hyphenation is off. A factor of 1.0 causes hyphenation to be attempted always.

Whenever (width of the real contents of the line) / (the line fragment width) is below factor, hyphenation is attempted when laying out the line. Hyphenation slows down text layout and increases memory usage, so it should be used sparingly.

May be overridden on a per-paragraph basis by the NSParagraphStyle method hyphenationFactor.
(Read and Write property)

NSLayoutManagerMBS.showInvisibleCharacters as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to show invisible characters.

This method is only available if the NSLayoutManagerMBS object has been created with new NSLayoutManagerMBS, so the plugin can use the special NSLayoutManager subclass with support for invisible character drawing. (from MBS Plugin)
(Read and Write property)

Some examples using this property:

NSLayoutManagerMBS.showsControlCharacters as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to substitute visible glyphs for control characters in layout.
Example
if TargetCocoa then

dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
dim l as NSLayoutManagerMBS = t.layoutManager

l.showsControlCharacters = true

else
// not supported
break
end if

If true, the receiver substitutes visible glyphs for control characters if the font and script support it; if false, it doesn't. The default is false.
(Read and Write property)

NSLayoutManagerMBS.showsInvisibleCharacters as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to substitute visible glyphs for whitespace and other typically invisible characters in layout.
Example
if TargetCocoa then

dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
dim l as NSLayoutManagerMBS = t.layoutManager

l.showsInvisibleCharacters = true

else
// not supported
break
end if

If true, the receiver substitutes visible glyphs for invisible characters if the font and script support it; if false, it doesn't. The default is false. (from Apple framework)
(Read and Write property)

NSLayoutManagerMBS.textColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The text color for drawing invisible characters.

This method is only available if the NSLayoutManagerMBS object has been created with new NSLayoutManagerMBS, so the plugin can use the special NSLayoutManager subclass with support for invisible character drawing.
(Read and Write property)

NSLayoutManagerMBS.textStorage as NSTextStorageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The text storage.

(Read and Write property)

NSLayoutManagerMBS.usesFontLeading as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 16.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Indicates whether the receiver uses the leading provided in the font.

(Read and Write property)

NSLayoutManagerMBS.usesScreenFonts as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether screen fonts to calculate layout and display text.

If true, the receiver uses screen fonts; if false, it doesn't.
(Read and Write property)

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


The biggest plugin in space...