Interface NSTextStorageObserving

  • All Known Implementing Classes:
    NSTextContentStorage

    public interface NSTextStorageObserving
    NSTextStorageObserving defines the protocol for NSTextStorage controller objects observing changes in the text backing-store. API-Since: 15.0
    • Method Detail

      • 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