Package apple.uikit.protocol
Interface NSTextStorageObserving
-
- All Known Implementing Classes:
NSTextContentStorage
public interface NSTextStorageObservingNSTextStorageObserving defines the protocol for NSTextStorage controller objects observing changes in the text backing-store. API-Since: 15.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceNSTextStorageObserving.Block_performEditingTransactionForTextStorageUsingBlock
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidperformEditingTransactionForTextStorageUsingBlock(@NotNull NSTextStorage textStorage, @NotNull NSTextStorageObserving.Block_performEditingTransactionForTextStorageUsingBlock transaction)Transactional editing supportvoidprocessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(@NotNull NSTextStorage textStorage, long editMask, NSRange newCharRange, long delta, NSRange invalidatedCharRange)The newCharRange is the range in the final string which was explicitly edited.voidsetTextStorage(@Nullable NSTextStorage value)The document object@Nullable NSTextStoragetextStorage()The document object
-
-
-
Method Detail
-
performEditingTransactionForTextStorageUsingBlock
void performEditingTransactionForTextStorageUsingBlock(@NotNull @NotNull NSTextStorage textStorage, @NotNull @NotNull NSTextStorageObserving.Block_performEditingTransactionForTextStorageUsingBlock transaction)Transactional editing support
-
processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange
void processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(@NotNull @NotNull NSTextStorage textStorage, long editMask, NSRange newCharRange, long delta, NSRange invalidatedCharRange)The newCharRange is the range in the final string which was explicitly edited. The invalidatedRange includes portions that changed as a result of attribute fixing. invalidatedRange is either equal to newCharRange or larger. Controllers should not change the contents of the text storage during the execution of this message.
-
setTextStorage
void setTextStorage(@Nullable @Nullable NSTextStorage value)The document object
-
textStorage
@Nullable @Nullable NSTextStorage textStorage()
The document object
-
-