Class NSMutableAttributedString

    • Constructor Detail

      • NSMutableAttributedString

        protected NSMutableAttributedString​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • addAttributeValueRange

        public void addAttributeValueRange​(@NotNull
                                           @NotNull java.lang.String name,
                                           @NotNull
                                           @NotNull java.lang.Object value,
                                           NSRange range)
      • addAttributesRange

        public void addAttributesRange​(@NotNull
                                       @NotNull NSDictionary<java.lang.String,​?> attrs,
                                       NSRange range)
      • appendAttributedString

        public void appendAttributedString​(@NotNull
                                           @NotNull NSAttributedString attrString)
      • beginEditing

        public void beginEditing()
      • deleteCharactersInRange

        public void deleteCharactersInRange​(NSRange range)
      • endEditing

        public void endEditing()
      • fixAttributesInRange

        public void fixAttributesInRange​(NSRange range)
        This method fixes attribute inconsistencies inside range. It ensures NSFontAttributeName covers the characters, NSParagraphStyleAttributeName is only changing at paragraph boundaries, and NSTextAttachmentAttributeName is assigned to NSAttachmentCharacter. NSTextStorage automatically invokes this method via -ensureAttributesAreFixedInRange:. API-Since: 7.0
      • initWithURLOptionsDocumentAttributesError

        public NSMutableAttributedString initWithURLOptionsDocumentAttributesError​(@NotNull
                                                                                   @NotNull NSURL url,
                                                                                   @NotNull
                                                                                   @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                   @Nullable
                                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,​?>> dict,
                                                                                   @Nullable
                                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSAttributedString
        Methods initializing the receiver contents with an external document data. options specify document attributes for interpreting the document contents. NSDocumentTypeDocumentAttribute, NSCharacterEncodingDocumentAttribute, and NSDefaultAttributesDocumentAttribute are supported options key. When they are not specified, these methods will examine the data and do their best to detect the appropriate attributes. If dict is non-NULL, it will return a dictionary with various document-wide attributes accessible via NS...DocumentAttribute keys. API-Since: 9.0
        Overrides:
        initWithURLOptionsDocumentAttributesError in class NSAttributedString
      • insertAttributedStringAtIndex

        public void insertAttributedStringAtIndex​(@NotNull
                                                  @NotNull NSAttributedString attrString,
                                                  long loc)
      • readFromDataOptionsDocumentAttributesError

        public boolean readFromDataOptionsDocumentAttributesError​(@NotNull
                                                                  @NotNull NSData data,
                                                                  @NotNull
                                                                  @NotNull NSDictionary<java.lang.String,​?> opts,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,​?>> dict,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 7.0
      • readFromFileURLOptionsDocumentAttributesError

        @Deprecated
        public boolean readFromFileURLOptionsDocumentAttributesError​(@NotNull
                                                                     @NotNull NSURL url,
                                                                     @NotNull
                                                                     @NotNull NSDictionary<?,​?> opts,
                                                                     @Nullable
                                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<?,​?>> dict,
                                                                     @Nullable
                                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Deprecated.
        API-Since: 7.0 Deprecated-Since: 9.0
      • readFromURLOptionsDocumentAttributesError

        public boolean readFromURLOptionsDocumentAttributesError​(@NotNull
                                                                 @NotNull NSURL url,
                                                                 @NotNull
                                                                 @NotNull NSDictionary<java.lang.String,​?> opts,
                                                                 @Nullable
                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,​?>> dict,
                                                                 @Nullable
                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Methods replacing the receiver contents with an external document data. options specify document attributes for interpreting the document contents. NSDocumentTypeDocumentAttribute, NSCharacterEncodingDocumentAttribute, and NSDefaultAttributesDocumentAttribute are supported options key. When they are not specified, these methods will examine the data and do their best to detect the appropriate attributes. If dict is non-NULL, it will return a dictionary with various document-wide attributes accessible via NS...DocumentAttribute keys. API-Since: 9.0
      • removeAttributeRange

        public void removeAttributeRange​(@NotNull
                                         @NotNull java.lang.String name,
                                         NSRange range)
      • replaceCharactersInRangeWithAttributedString

        public void replaceCharactersInRangeWithAttributedString​(NSRange range,
                                                                 @NotNull
                                                                 @NotNull NSAttributedString attrString)
      • replaceCharactersInRangeWithString

        public void replaceCharactersInRangeWithString​(NSRange range,
                                                       @NotNull
                                                       @NotNull java.lang.String str)
        Override these two APIs (in addition to the two for NSAttributedString) when subclassing NSMutableAttributedString
      • setAttributedString

        public void setAttributedString​(@NotNull
                                        @NotNull NSAttributedString attrString)
      • setAttributesRange

        public void setAttributesRange​(@Nullable
                                       @Nullable NSDictionary<java.lang.String,​?> attrs,
                                       NSRange range)
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class NSAttributedString
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(@NotNull
                                                                                            @NotNull java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

        @Nullable
        public static @Nullable NSMutableAttributedString objectWithItemProviderDataTypeIdentifierError​(@NotNull
                                                                                                        @NotNull NSData data,
                                                                                                        @NotNull
                                                                                                        @NotNull java.lang.String typeIdentifier,
                                                                                                        @Nullable
                                                                                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
      • readableTypeIdentifiersForItemProvider

        @NotNull
        public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
      • writableTypeIdentifiersForItemProvider_static

        @NotNull
        public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • appendLocalizedFormat

        public void appendLocalizedFormat​(@NotNull
                                          @NotNull NSAttributedString format,
                                          java.lang.Object... varargs)
        Formats the specified string and arguments with the current locale, then appends the result to the receiver. API-Since: 15.0
      • localizedAttributedStringWithFormatOptions

        @NotNull
        public static @NotNull NSMutableAttributedString localizedAttributedStringWithFormatOptions​(@NotNull
                                                                                                    @NotNull NSAttributedString format,
                                                                                                    long options,
                                                                                                    java.lang.Object... varargs)
      • localizedAttributedStringWithFormatContext

        @NotNull
        public static @NotNull NSMutableAttributedString localizedAttributedStringWithFormatContext​(@NotNull
                                                                                                    @NotNull NSAttributedString format,
                                                                                                    @NotNull
                                                                                                    @NotNull NSDictionary<java.lang.String,​?> context,
                                                                                                    java.lang.Object... varargs)
      • localizedAttributedStringWithFormatOptionsContext

        @NotNull
        public static @NotNull NSMutableAttributedString localizedAttributedStringWithFormatOptionsContext​(@NotNull
                                                                                                           @NotNull NSAttributedString format,
                                                                                                           long options,
                                                                                                           @NotNull
                                                                                                           @NotNull NSDictionary<java.lang.String,​?> context,
                                                                                                           java.lang.Object... varargs)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.