Package apple.foundation
Class NSAttributedString
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSAttributedString
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSItemProviderReading,NSItemProviderWriting,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSMutableAttributedString
public class NSAttributedString extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSItemProviderReading, NSItemProviderWriting
API-Since: 3.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlockstatic interfaceNSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlockstatic interfaceNSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandlerstatic interfaceNSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandlerstatic interfaceNSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandlerstatic interfaceNSAttributedString.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 protectedNSAttributedString(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 NSAttributedString_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()static NSAttributedStringalloc()static NSAttributedStringallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable java.lang.ObjectattributeAtIndexEffectiveRange(@NotNull java.lang.String attrName, long location, @Nullable NSRange range)@Nullable java.lang.ObjectattributeAtIndexLongestEffectiveRangeInRange(@NotNull java.lang.String attrName, long location, @Nullable NSRange range, NSRange rangeLimit)@NotNull NSAttributedStringattributedStringByInflectingString()If the string has portions tagged with NSInflectionRuleAttributeName that have no format specifiers, create a new string with those portions inflected by following the rule in the attribute.static @NotNull NSAttributedStringattributedStringWithAttachment(@NotNull NSTextAttachment attachment)A convenience method for creating an attributed string containing attachment using NSAttachmentCharacter as the base character.@NotNull NSAttributedStringattributedSubstringFromRange(NSRange range)@NotNull NSDictionary<java.lang.String,?>attributesAtIndexEffectiveRange(long location, @Nullable NSRange range)@NotNull NSDictionary<java.lang.String,?>attributesAtIndexLongestEffectiveRangeInRange(long location, @Nullable NSRange range, NSRange rangeLimit)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)CGRectboundingRectWithSizeOptionsContext(CGSize size, long options, @Nullable NSStringDrawingContext context)API-Since: 6.0static 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()booleancontainsAttachmentsInRange(NSRange range)Returns YES if the receiver contains a property configured (NSAttachmentAttributeName with NSAttachmentCharacter) in range API-Since: 9.0@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)@Nullable NSDatadataFromRangeDocumentAttributesError(NSRange range, @NotNull NSDictionary<java.lang.String,?> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Generates an NSData object for the receiver contents in range.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddrawAtPoint(CGPoint point)API-Since: 6.0voiddrawInRect(CGRect rect)API-Since: 6.0voiddrawWithRectOptionsContext(CGRect rect, long options, @Nullable NSStringDrawingContext context)API-Since: 6.0voidencodeWithCoder(@NotNull NSCoder coder)voidenumerateAttributeInRangeOptionsUsingBlock(@NotNull java.lang.String attrName, NSRange enumerationRange, long opts, @NotNull NSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlock block)API-Since: 4.0voidenumerateAttributesInRangeOptionsUsingBlock(NSRange enumerationRange, long opts, @NotNull NSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlock block)API-Since: 4.0@Nullable NSFileWrapperfileWrapperFromRangeDocumentAttributesError(NSRange range, @NotNull NSDictionary<java.lang.String,?> dict, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Returns an NSFileWrapper object for the receiver contents in range.static longhash_static()NSAttributedStringinit()NSAttributedStringinitWithAttributedString(@NotNull NSAttributedString attrStr)NSAttributedStringinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERNSAttributedStringinitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(@NotNull NSURL markdownFile, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)These constructors have a 'baseURL' parameter.NSAttributedStringinitWithDataOptionsDocumentAttributesError(@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.0NSAttributedStringinitWithFileURLOptionsDocumentAttributesError(@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.NSAttributedStringinitWithFormatOptionsLocale(@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).NSAttributedStringinitWithFormatOptionsLocaleArguments(@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).NSAttributedStringinitWithFormatOptionsLocaleContext(@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).NSAttributedStringinitWithFormatOptionsLocaleContextArguments(@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).NSAttributedStringinitWithMarkdownOptionsBaseURLError(@NotNull NSData markdown, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 15.0NSAttributedStringinitWithMarkdownStringOptionsBaseURLError(@NotNull java.lang.String markdownString, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 15.0NSAttributedStringinitWithString(@NotNull java.lang.String str)NSAttributedStringinitWithStringAttributes(@NotNull java.lang.String str, @Nullable NSDictionary<java.lang.String,?> attrs)NSAttributedStringinitWithURLOptionsDocumentAttributesError(@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.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)booleanisEqualToAttributedString(@NotNull NSAttributedString other)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)longitemProviderVisibilityForRepresentationWithTypeIdentifier(@NotNull java.lang.String typeIdentifier)static longitemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)longlength()@Nullable NSProgressloadDataWithTypeIdentifierForItemProviderCompletionHandler(@NotNull java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)One of writableTypeIdentifiersForItemProviderstatic voidloadFromHTMLWithDataOptionsCompletionHandler(@NotNull NSData data, @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)Converts HTML data into an attributed string.static voidloadFromHTMLWithFileURLOptionsCompletionHandler(@NotNull NSURL fileURL, @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)Converts a local HTML file into an attributed string.static voidloadFromHTMLWithRequestOptionsCompletionHandler(@NotNull NSURLRequest request, @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)Loads an HTML URL request and converts the contents into an attributed string.static voidloadFromHTMLWithStringOptionsCompletionHandler(@NotNull java.lang.String string, @NotNull NSDictionary<java.lang.String,?> options, @NotNull NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)Converts an HTML string into an attributed string.static @NotNull NSAttributedStringlocalizedAttributedStringWithFormat(@NotNull NSAttributedString format, java.lang.Object... varargs)Formats the string using the current locale and default options.static @NotNull NSAttributedStringlocalizedAttributedStringWithFormatContext(@NotNull NSAttributedString format, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)Formats the string using the current locale and default options.static @NotNull NSAttributedStringlocalizedAttributedStringWithFormatOptions(@NotNull NSAttributedString format, long options, java.lang.Object... varargs)Formats the string using the current locale and the specified options.static @NotNull NSAttributedStringlocalizedAttributedStringWithFormatOptionsContext(@NotNull NSAttributedString format, long options, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)Formats the string using the current locale and the specified options.@NotNull java.lang.ObjectmutableCopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static NSAttributedStringnew_objc()static @Nullable NSAttributedStringobjectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)static @NotNull NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)CGSizesize()API-Since: 6.0@NotNull java.lang.Stringstring()Override these two APIs when subclassing NSAttributedStringstatic org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static booleanuseStoredAccessor()Deprecated.static longversion_static()@NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider()static @NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
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 NSAttributedString alloc()
-
allocWithZone
public static NSAttributedString allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attributedStringWithAttachment
@NotNull public static @NotNull NSAttributedString attributedStringWithAttachment(@NotNull @NotNull NSTextAttachment attachment)
A convenience method for creating an attributed string containing attachment using NSAttachmentCharacter as the base character. API-Since: 7.0
-
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 NSAttributedString 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()
-
attributeAtIndexEffectiveRange
@Nullable public @Nullable java.lang.Object attributeAtIndexEffectiveRange(@NotNull @NotNull java.lang.String attrName, long location, @Nullable @Nullable NSRange range)
-
attributeAtIndexLongestEffectiveRangeInRange
@Nullable public @Nullable java.lang.Object attributeAtIndexLongestEffectiveRangeInRange(@NotNull @NotNull java.lang.String attrName, long location, @Nullable @Nullable NSRange range, NSRange rangeLimit)
-
attributedSubstringFromRange
@NotNull public @NotNull NSAttributedString attributedSubstringFromRange(NSRange range)
-
attributesAtIndexEffectiveRange
@NotNull public @NotNull NSDictionary<java.lang.String,?> attributesAtIndexEffectiveRange(long location, @Nullable @Nullable NSRange range)
-
attributesAtIndexLongestEffectiveRangeInRange
@NotNull public @NotNull NSDictionary<java.lang.String,?> attributesAtIndexLongestEffectiveRangeInRange(long location, @Nullable @Nullable NSRange range, NSRange rangeLimit)
-
boundingRectWithSizeOptionsContext
public CGRect boundingRectWithSizeOptionsContext(CGSize size, long options, @Nullable @Nullable NSStringDrawingContext context)
API-Since: 6.0
-
containsAttachmentsInRange
public boolean containsAttachmentsInRange(NSRange range)
Returns YES if the receiver contains a property configured (NSAttachmentAttributeName with NSAttachmentCharacter) in range API-Since: 9.0
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
dataFromRangeDocumentAttributesError
@Nullable public @Nullable NSData dataFromRangeDocumentAttributesError(NSRange range, @NotNull @NotNull NSDictionary<java.lang.String,?> dict, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Generates an NSData object for the receiver contents in range. It requires a document attributes dict specifying at least the NSDocumentTypeDocumentAttribute to determine the format to be written. API-Since: 7.0
-
drawAtPoint
public void drawAtPoint(CGPoint point)
API-Since: 6.0
-
drawInRect
public void drawInRect(CGRect rect)
API-Since: 6.0
-
drawWithRectOptionsContext
public void drawWithRectOptionsContext(CGRect rect, long options, @Nullable @Nullable NSStringDrawingContext context)
API-Since: 6.0
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateAttributeInRangeOptionsUsingBlock
public void enumerateAttributeInRangeOptionsUsingBlock(@NotNull @NotNull java.lang.String attrName, NSRange enumerationRange, long opts, @NotNull @NotNull NSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlock block)API-Since: 4.0
-
enumerateAttributesInRangeOptionsUsingBlock
public void enumerateAttributesInRangeOptionsUsingBlock(NSRange enumerationRange, long opts, @NotNull @NotNull NSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlock block)
API-Since: 4.0
-
fileWrapperFromRangeDocumentAttributesError
@Nullable public @Nullable NSFileWrapper fileWrapperFromRangeDocumentAttributesError(NSRange range, @NotNull @NotNull NSDictionary<java.lang.String,?> dict, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Returns an NSFileWrapper object for the receiver contents in range. It requires a document attributes dict specifying at least the NSDocumentTypeDocumentAttribute to determine the format to be written. The method returns a directory file wrapper for those document types represented by a file package such as NSRTFDTextDocumentType; otherwise, it returns a regular-file file wrapper. API-Since: 7.0
-
init
public NSAttributedString init()
-
initWithAttributedString
public NSAttributedString initWithAttributedString(@NotNull @NotNull NSAttributedString attrStr)
-
initWithCoder
public NSAttributedString initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithDataOptionsDocumentAttributesError
public NSAttributedString 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)
API-Since: 7.0
-
initWithFileURLOptionsDocumentAttributesError
@Deprecated public NSAttributedString 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.API-Since: 7.0 Deprecated-Since: 9.0
-
initWithString
public NSAttributedString initWithString(@NotNull @NotNull java.lang.String str)
-
initWithStringAttributes
public NSAttributedString initWithStringAttributes(@NotNull @NotNull java.lang.String str, @Nullable @Nullable NSDictionary<java.lang.String,?> attrs)
-
initWithURLOptionsDocumentAttributesError
public NSAttributedString 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)
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
-
isEqualToAttributedString
public boolean isEqualToAttributedString(@NotNull @NotNull NSAttributedString other)
-
length
public long length()
-
mutableCopyWithZone
@NotNull public @NotNull java.lang.Object mutableCopyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
size
public CGSize size()
API-Since: 6.0
-
string
@NotNull public @NotNull java.lang.String string()
Override these two APIs when subclassing NSAttributedString
-
_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
-
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
-
itemProviderVisibilityForRepresentationWithTypeIdentifier
public long itemProviderVisibilityForRepresentationWithTypeIdentifier(@NotNull @NotNull java.lang.String typeIdentifier)
-
loadDataWithTypeIdentifierForItemProviderCompletionHandler
@Nullable public @Nullable NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
Description copied from interface:NSItemProviderWritingOne of writableTypeIdentifiersForItemProvider- Specified by:
loadDataWithTypeIdentifierForItemProviderCompletionHandlerin interfaceNSItemProviderWriting
-
objectWithItemProviderDataTypeIdentifierError
@Nullable public static @Nullable NSAttributedString 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 NSAttributedString _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
-
readableTypeIdentifiersForItemProvider
@NotNull public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
-
_readableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
- Specified by:
_readableTypeIdentifiersForItemProviderin interfaceNSItemProviderReading
-
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
-
writableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
-
loadFromHTMLWithDataOptionsCompletionHandler
public static void loadFromHTMLWithDataOptionsCompletionHandler(@NotNull @NotNull NSData data, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull @NotNull NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)Converts HTML data into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. If neither NSTextEncodingNameDocumentOption nor NSCharacterEncodingDocumentOption is supplied, a best-guess encoding is used. API-Since: 13.0- Parameters:
data- The HTML data to use as the contents.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption, NSTextEncodingNameDocumentOption, and NSCharacterEncodingDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
loadFromHTMLWithFileURLOptionsCompletionHandler
public static void loadFromHTMLWithFileURLOptionsCompletionHandler(@NotNull @NotNull NSURL fileURL, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull @NotNull NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)Converts a local HTML file into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. If NSReadAccessURLDocumentOption references a single file, only that file may be loaded by WebKit. If NSReadAccessURLDocumentOption references a directory, files inside that directory may be loaded by WebKit. API-Since: 13.0- Parameters:
fileURL- The file URL to load.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption and NSReadAccessURLDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
loadFromHTMLWithRequestOptionsCompletionHandler
public static void loadFromHTMLWithRequestOptionsCompletionHandler(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull @NotNull NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)Loads an HTML URL request and converts the contents into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. API-Since: 13.0- Parameters:
request- The request specifying the URL to load.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption and NSTimeoutDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
loadFromHTMLWithStringOptionsCompletionHandler
public static void loadFromHTMLWithStringOptionsCompletionHandler(@NotNull @NotNull java.lang.String string, @NotNull @NotNull NSDictionary<java.lang.String,?> options, @NotNull @NotNull NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)Converts an HTML string into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. NSBaseURLDocumentOption is used to resolve relative URLs within the document. API-Since: 13.0- Parameters:
string- The HTML string to use as the contents.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption and NSBaseURLDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
attributedStringByInflectingString
@NotNull public @NotNull NSAttributedString attributedStringByInflectingString()
If the string has portions tagged with NSInflectionRuleAttributeName that have no format specifiers, create a new string with those portions inflected by following the rule in the attribute. API-Since: 15.0
-
initWithContentsOfMarkdownFileAtURLOptionsBaseURLError
public NSAttributedString initWithContentsOfMarkdownFileAtURLOptionsBaseURLError(@NotNull @NotNull NSURL markdownFile, @Nullable @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable @Nullable NSURL baseURL, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
These 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
-
initWithFormatOptionsLocale
public NSAttributedString initWithFormatOptionsLocale(@NotNull @NotNull NSAttributedString format, long options, @Nullable @Nullable NSLocale locale, java.lang.Object... varargs)
Formats the string using the specified locale (or the canonical one, if nil). API-Since: 15.0
-
initWithFormatOptionsLocaleArguments
public NSAttributedString initWithFormatOptionsLocaleArguments(@NotNull @NotNull NSAttributedString format, long options, @Nullable @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). API-Since: 15.0
-
initWithMarkdownOptionsBaseURLError
public NSAttributedString initWithMarkdownOptionsBaseURLError(@NotNull @NotNull NSData markdown, @Nullable @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable @Nullable NSURL baseURL, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
API-Since: 15.0
-
initWithMarkdownStringOptionsBaseURLError
public NSAttributedString 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)
API-Since: 15.0
-
localizedAttributedStringWithFormat
@NotNull public static @NotNull NSAttributedString localizedAttributedStringWithFormat(@NotNull @NotNull NSAttributedString format, java.lang.Object... varargs)
Formats the string using the current locale and default options. API-Since: 15.0
-
localizedAttributedStringWithFormatOptions
@NotNull public static @NotNull NSAttributedString localizedAttributedStringWithFormatOptions(@NotNull @NotNull NSAttributedString format, long options, java.lang.Object... varargs)
Formats the string using the current locale and the specified options. API-Since: 15.0
-
initWithFormatOptionsLocaleContext
public NSAttributedString initWithFormatOptionsLocaleContext(@NotNull @NotNull NSAttributedString format, long options, @Nullable @Nullable NSLocale locale, @NotNull @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)
Formats the string using the specified locale (or the canonical one, if nil). API-Since: 17.0
-
initWithFormatOptionsLocaleContextArguments
public NSAttributedString 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)
Formats the string using the arguments list and the specified locale (or the canonical one, if nil). API-Since: 17.0
-
localizedAttributedStringWithFormatContext
@NotNull public static @NotNull NSAttributedString localizedAttributedStringWithFormatContext(@NotNull @NotNull NSAttributedString format, @NotNull @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)
Formats the string using the current locale and default options. API-Since: 17.0
-
localizedAttributedStringWithFormatOptionsContext
@NotNull public static @NotNull NSAttributedString localizedAttributedStringWithFormatOptionsContext(@NotNull @NotNull NSAttributedString format, long options, @NotNull @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)
Formats the string using the current locale and the specified options. API-Since: 17.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-