Package apple.foundation
Class NSMutableAttributedString
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSAttributedString
-
- apple.foundation.NSMutableAttributedString
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSItemProviderReading,NSItemProviderWriting,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSTextStorage
public class NSMutableAttributedString extends NSAttributedString
API-Since: 3.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.foundation.NSAttributedString
NSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlock, NSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlock, NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler, NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler, NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler, NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSItemProviderWriting
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSMutableAttributedString(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)@Nullable NSMutableAttributedString_objectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)@NotNull NSArray<java.lang.String>_readableTypeIdentifiersForItemProvider()boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.@NotNull NSArray<java.lang.String>_writableTypeIdentifiersForItemProvider_static()static booleanaccessInstanceVariablesDirectly()voidaddAttributesRange(@NotNull NSDictionary<java.lang.String,?> attrs, NSRange range)voidaddAttributeValueRange(@NotNull java.lang.String name, @NotNull java.lang.Object value, NSRange range)static NSMutableAttributedStringalloc()static NSMutableAttributedStringallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)voidappendAttributedString(@NotNull NSAttributedString attrString)voidappendLocalizedFormat(@NotNull NSAttributedString format, java.lang.Object... varargs)Formats the specified string and arguments with the current locale, then appends the result to the receiver.static @NotNull NSAttributedStringattributedStringWithAttachment(@NotNull NSTextAttachment attachment)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)voidbeginEditing()static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()voiddeleteCharactersInRange(NSRange range)static java.lang.Stringdescription_static()voidendEditing()voidfixAttributesInRange(NSRange range)This method fixes attribute inconsistencies inside range.static longhash_static()NSMutableAttributedStringinit()NSMutableAttributedStringinitWithAttributedString(@NotNull NSAttributedString attrStr)NSMutableAttributedStringinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERNSMutableAttributedStringinitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(@NotNull NSURL markdownFile, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)These constructors have a 'baseURL' parameter.NSMutableAttributedStringinitWithDataOptionsDocumentAttributesError(@NotNull NSData data, @NotNull NSDictionary<java.lang.String,?> options, @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 7.0NSMutableAttributedStringinitWithFileURLOptionsDocumentAttributesError(@NotNull NSURL url, @NotNull NSDictionary<?,?> options, @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.NSMutableAttributedStringinitWithFormatOptionsLocale(@NotNull NSAttributedString format, long options, @Nullable NSLocale locale, java.lang.Object... varargs)Formats the string using the specified locale (or the canonical one, if nil).NSMutableAttributedStringinitWithFormatOptionsLocaleArguments(@NotNull NSAttributedString format, long options, @Nullable NSLocale locale, org.moe.natj.general.ptr.BytePtr arguments)Formats the string using the arguments list and the specified locale (or the canonical one, if nil).NSMutableAttributedStringinitWithFormatOptionsLocaleContext(@NotNull NSAttributedString format, long options, @Nullable NSLocale locale, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)Formats the string using the specified locale (or the canonical one, if nil).NSMutableAttributedStringinitWithFormatOptionsLocaleContextArguments(@NotNull NSAttributedString format, long options, @Nullable NSLocale locale, @NotNull NSDictionary<java.lang.String,?> context, org.moe.natj.general.ptr.BytePtr arguments)Formats the string using the arguments list and the specified locale (or the canonical one, if nil).NSMutableAttributedStringinitWithMarkdownOptionsBaseURLError(@NotNull NSData markdown, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 15.0NSMutableAttributedStringinitWithMarkdownStringOptionsBaseURLError(@NotNull java.lang.String markdownString, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 15.0NSMutableAttributedStringinitWithString(@NotNull java.lang.String str)NSMutableAttributedStringinitWithStringAttributes(@NotNull java.lang.String str, @Nullable NSDictionary<java.lang.String,?> attrs)NSMutableAttributedStringinitWithURLOptionsDocumentAttributesError(@NotNull NSURL url, @NotNull NSDictionary<java.lang.String,?> options, @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Methods initializing the receiver contents with an external document data.voidinsertAttributedStringAtIndex(@NotNull NSAttributedString attrString, long loc)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static longitemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static voidloadFromHTMLWithDataOptionsCompletionHandler(@NotNull NSData data, @NotNull NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)static voidloadFromHTMLWithFileURLOptionsCompletionHandler(@NotNull NSURL fileURL, @NotNull NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)static voidloadFromHTMLWithRequestOptionsCompletionHandler(@NotNull NSURLRequest request, @NotNull NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)static voidloadFromHTMLWithStringOptionsCompletionHandler(@NotNull java.lang.String string, @NotNull NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)static @NotNull NSMutableAttributedStringlocalizedAttributedStringWithFormat(@NotNull NSAttributedString format, java.lang.Object... varargs)static @NotNull NSMutableAttributedStringlocalizedAttributedStringWithFormatContext(@NotNull NSAttributedString format, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)static @NotNull NSMutableAttributedStringlocalizedAttributedStringWithFormatOptions(@NotNull NSAttributedString format, long options, java.lang.Object... varargs)static @NotNull NSMutableAttributedStringlocalizedAttributedStringWithFormatOptionsContext(@NotNull NSAttributedString format, long options, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)@NotNull NSMutableStringmutableString()static NSMutableAttributedStringnew_objc()static @Nullable NSMutableAttributedStringobjectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)static @NotNull NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()booleanreadFromDataOptionsDocumentAttributesError(@NotNull NSData data, @NotNull NSDictionary<java.lang.String,?> opts, @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 7.0booleanreadFromFileURLOptionsDocumentAttributesError(@NotNull NSURL url, @NotNull NSDictionary<?,?> opts, @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.booleanreadFromURLOptionsDocumentAttributesError(@NotNull NSURL url, @NotNull NSDictionary<java.lang.String,?> opts, @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Methods replacing the receiver contents with an external document data.voidremoveAttributeRange(@NotNull java.lang.String name, NSRange range)voidreplaceCharactersInRangeWithAttributedString(NSRange range, @NotNull NSAttributedString attrString)voidreplaceCharactersInRangeWithString(NSRange range, @NotNull java.lang.String str)Override these two APIs (in addition to the two for NSAttributedString) when subclassing NSMutableAttributedStringstatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAttributedString(@NotNull NSAttributedString attrString)voidsetAttributesRange(@Nullable NSDictionary<java.lang.String,?> attrs, NSRange range)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static booleanuseStoredAccessor()Deprecated.static longversion_static()static @NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
Methods inherited from class apple.foundation.NSAttributedString
attributeAtIndexEffectiveRange, attributeAtIndexLongestEffectiveRangeInRange, attributedStringByInflectingString, attributedSubstringFromRange, attributesAtIndexEffectiveRange, attributesAtIndexLongestEffectiveRangeInRange, boundingRectWithSizeOptionsContext, containsAttachmentsInRange, copyWithZone, dataFromRangeDocumentAttributesError, drawAtPoint, drawInRect, drawWithRectOptionsContext, encodeWithCoder, enumerateAttributeInRangeOptionsUsingBlock, enumerateAttributesInRangeOptionsUsingBlock, fileWrapperFromRangeDocumentAttributesError, isEqualToAttributedString, itemProviderVisibilityForRepresentationWithTypeIdentifier, length, loadDataWithTypeIdentifierForItemProviderCompletionHandler, mutableCopyWithZone, size, string, writableTypeIdentifiersForItemProvider
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSMutableAttributedString alloc()
-
allocWithZone
public static NSMutableAttributedString allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attributedStringWithAttachment
@NotNull public static @NotNull NSAttributedString attributedStringWithAttachment(@NotNull @NotNull NSTextAttachment attachment)
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
new_objc
public static NSMutableAttributedString new_objc()
-
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
-
init
public NSMutableAttributedString init()
- Overrides:
initin classNSAttributedString
-
initWithAttributedString
public NSMutableAttributedString initWithAttributedString(@NotNull @NotNull NSAttributedString attrStr)
- Overrides:
initWithAttributedStringin classNSAttributedString
-
initWithCoder
public NSMutableAttributedString initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classNSAttributedString
-
initWithDataOptionsDocumentAttributesError
public NSMutableAttributedString initWithDataOptionsDocumentAttributesError(@NotNull @NotNull NSData data, @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:NSAttributedStringAPI-Since: 7.0- Overrides:
initWithDataOptionsDocumentAttributesErrorin classNSAttributedString
-
initWithFileURLOptionsDocumentAttributesError
@Deprecated public NSMutableAttributedString initWithFileURLOptionsDocumentAttributesError(@NotNull @NotNull NSURL url, @NotNull @NotNull NSDictionary<?,?> options, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.Description copied from class:NSAttributedStringAPI-Since: 7.0 Deprecated-Since: 9.0- Overrides:
initWithFileURLOptionsDocumentAttributesErrorin classNSAttributedString
-
initWithString
public NSMutableAttributedString initWithString(@NotNull @NotNull java.lang.String str)
- Overrides:
initWithStringin classNSAttributedString
-
initWithStringAttributes
public NSMutableAttributedString initWithStringAttributes(@NotNull @NotNull java.lang.String str, @Nullable @Nullable NSDictionary<java.lang.String,?> attrs)
- Overrides:
initWithStringAttributesin classNSAttributedString
-
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:NSAttributedStringMethods 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:
initWithURLOptionsDocumentAttributesErrorin classNSAttributedString
-
insertAttributedStringAtIndex
public void insertAttributedStringAtIndex(@NotNull @NotNull NSAttributedString attrString, long loc)
-
mutableString
@NotNull public @NotNull NSMutableString mutableString()
-
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:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classNSAttributedString
-
itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull @NotNull java.lang.String typeIdentifier)
-
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull @NotNull java.lang.String typeIdentifier)- Specified by:
_itemProviderVisibilityForRepresentationWithTypeIdentifier_staticin interfaceNSItemProviderWriting- Overrides:
_itemProviderVisibilityForRepresentationWithTypeIdentifier_staticin classNSAttributedString
-
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)
-
_objectWithItemProviderDataTypeIdentifierError
@Nullable public @Nullable NSMutableAttributedString _objectWithItemProviderDataTypeIdentifierError(@NotNull @NotNull NSData data, @NotNull @NotNull java.lang.String typeIdentifier, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
- Specified by:
_objectWithItemProviderDataTypeIdentifierErrorin interfaceNSItemProviderReading- Overrides:
_objectWithItemProviderDataTypeIdentifierErrorin classNSAttributedString
-
readableTypeIdentifiersForItemProvider
@NotNull public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
-
_readableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
- Specified by:
_readableTypeIdentifiersForItemProviderin interfaceNSItemProviderReading- Overrides:
_readableTypeIdentifiersForItemProviderin classNSAttributedString
-
writableTypeIdentifiersForItemProvider_static
@NotNull public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
-
_writableTypeIdentifiersForItemProvider_static
@NotNull public @NotNull NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
- Specified by:
_writableTypeIdentifiersForItemProvider_staticin interfaceNSItemProviderWriting- Overrides:
_writableTypeIdentifiersForItemProvider_staticin classNSAttributedString
-
loadFromHTMLWithDataOptionsCompletionHandler
public static void loadFromHTMLWithDataOptionsCompletionHandler(@NotNull @NotNull NSData data, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)
-
loadFromHTMLWithFileURLOptionsCompletionHandler
public static void loadFromHTMLWithFileURLOptionsCompletionHandler(@NotNull @NotNull NSURL fileURL, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)
-
loadFromHTMLWithRequestOptionsCompletionHandler
public static void loadFromHTMLWithRequestOptionsCompletionHandler(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)
-
loadFromHTMLWithStringOptionsCompletionHandler
public static void loadFromHTMLWithStringOptionsCompletionHandler(@NotNull @NotNull java.lang.String string, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)
-
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
-
initWithContentsOfMarkdownFileAtURLOptionsBaseURLError
public NSMutableAttributedString initWithContentsOfMarkdownFileAtURLOptionsBaseURLError(@NotNull @NotNull NSURL markdownFile, @Nullable @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable @Nullable NSURL baseURL, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Description copied from class:NSAttributedStringThese constructors have a 'baseURL' parameter. If specified, links in the document will be relative to this URL, and images in the document will be looked for relative to this URL (if the other options allow image loading). Defaults to nil. If set to nil, paths will not be resolved. API-Since: 15.0- Overrides:
initWithContentsOfMarkdownFileAtURLOptionsBaseURLErrorin classNSAttributedString
-
initWithFormatOptionsLocale
public NSMutableAttributedString initWithFormatOptionsLocale(@NotNull @NotNull NSAttributedString format, long options, @Nullable @Nullable NSLocale locale, java.lang.Object... varargs)
Description copied from class:NSAttributedStringFormats the string using the specified locale (or the canonical one, if nil). API-Since: 15.0- Overrides:
initWithFormatOptionsLocalein classNSAttributedString
-
initWithFormatOptionsLocaleArguments
public NSMutableAttributedString initWithFormatOptionsLocaleArguments(@NotNull @NotNull NSAttributedString format, long options, @Nullable @Nullable NSLocale locale, org.moe.natj.general.ptr.BytePtr arguments)
Description copied from class:NSAttributedStringFormats the string using the arguments list and the specified locale (or the canonical one, if nil). API-Since: 15.0- Overrides:
initWithFormatOptionsLocaleArgumentsin classNSAttributedString
-
initWithMarkdownOptionsBaseURLError
public NSMutableAttributedString initWithMarkdownOptionsBaseURLError(@NotNull @NotNull NSData markdown, @Nullable @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable @Nullable NSURL baseURL, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Description copied from class:NSAttributedStringAPI-Since: 15.0- Overrides:
initWithMarkdownOptionsBaseURLErrorin classNSAttributedString
-
initWithMarkdownStringOptionsBaseURLError
public NSMutableAttributedString initWithMarkdownStringOptionsBaseURLError(@NotNull @NotNull java.lang.String markdownString, @Nullable @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable @Nullable NSURL baseURL, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Description copied from class:NSAttributedStringAPI-Since: 15.0- Overrides:
initWithMarkdownStringOptionsBaseURLErrorin classNSAttributedString
-
localizedAttributedStringWithFormat
@NotNull public static @NotNull NSMutableAttributedString localizedAttributedStringWithFormat(@NotNull @NotNull NSAttributedString format, java.lang.Object... varargs)
-
localizedAttributedStringWithFormatOptions
@NotNull public static @NotNull NSMutableAttributedString localizedAttributedStringWithFormatOptions(@NotNull @NotNull NSAttributedString format, long options, java.lang.Object... varargs)
-
initWithFormatOptionsLocaleContext
public NSMutableAttributedString initWithFormatOptionsLocaleContext(@NotNull @NotNull NSAttributedString format, long options, @Nullable @Nullable NSLocale locale, @NotNull @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)
Description copied from class:NSAttributedStringFormats the string using the specified locale (or the canonical one, if nil). API-Since: 17.0- Overrides:
initWithFormatOptionsLocaleContextin classNSAttributedString
-
initWithFormatOptionsLocaleContextArguments
public NSMutableAttributedString initWithFormatOptionsLocaleContextArguments(@NotNull @NotNull NSAttributedString format, long options, @Nullable @Nullable NSLocale locale, @NotNull @NotNull NSDictionary<java.lang.String,?> context, org.moe.natj.general.ptr.BytePtr arguments)
Description copied from class:NSAttributedStringFormats the string using the arguments list and the specified locale (or the canonical one, if nil). API-Since: 17.0- Overrides:
initWithFormatOptionsLocaleContextArgumentsin classNSAttributedString
-
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.
-
-