Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTextStorageMBS class.
NSTextStorageMBS.addLayoutManager(l as NSLayoutManagerMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
l: The layout manager to add.
NSTextStorageMBS.changeInLength as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns the difference between the current length of the edited range and its length before editing began. That is, before the receiver was sent the first beginEditing message or a single edited:range:changeInLength: message.
This difference is accumulated with each invocation of edited:range:changeInLength:, until a final message processes the changes.
The receiver's delegate and layout managers can use this information to determine the nature of edits in their respective notification methods.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 12.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTextStorageMBS.editedMask as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns a mask describing the kinds of edits pending for the receiver.
NSTextStorageMBS.editedRange as NSRangeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The receiver's delegate and layout managers can use this information to determine the nature of edits in their respective notification methods.
NSTextStorageMBS.ensureAttributesAreFixedInRange(Range as NSRangeMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
range: The range of characters whose attributes might be examined.
An NSTextStorage object using lazy attribute fixing is required to call this method before accessing any attributes within range. This method gives attribute fixing a chance to occur if necessary. NSTextStorage subclasses wishing to support laziness must call this method from all attribute accessors they implement.
NSTextStorageMBS.fixesAttributesLazily as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
By default, custom NSTextStorage subclasses are not lazy, but the provided concrete subclass is lazy by default.
NSTextStorageMBS.invalidateAttributesInRange(Range as NSRangeMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
range: The range of characters whose attributes should be invalidated.
Called from processEditing to invalidate attributes when the text storage changes. If the receiver is not lazy, this method simply calls fixAttributesInRange. If lazy attribute fixing is in effect, this method instead records the range needing fixing.
NSTextStorageMBS.processEditing
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTextStorageMBS.removeLayoutManager(l as NSLayoutManagerMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
l: The layout manager to remove.
The items on this page are in the following plugins: MBS MacCocoa Plugin.