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 |
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 |
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 |
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 |
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 |
(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 |
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 |
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 |
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 |
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 |
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 |
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 |
(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 |
(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 |
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.
