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
Adds a layout manager to the receiver's set of layout managers.

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.

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.

NSTextStorageMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacCocoa Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constructor to create a new empty text storage object.

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 the kinds of edits pending for the receiver.

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
eturns the range of the receiver to which pending changes have been made, whether of characters or of attributes.

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
Ensures that attributes are fixed in the given range.

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
Returns whether the receiver fixes attributes lazily.

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
Invalidates attributes in the specified range.

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
Cleans up changes made to the receiver and notifies its delegate and layout managers of changes.

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
Removes a layout manager from the receiver's set of layout managers.

l: The layout manager to remove.

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


The biggest plugin in space...