Package apple.uikit
Class NSTextStorage
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSAttributedString
-
- apple.foundation.NSMutableAttributedString
-
- apple.uikit.NSTextStorage
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSItemProviderReading,NSItemProviderWriting,NSMutableCopying,NSSecureCoding,NSObject
public class NSTextStorage extends NSMutableAttributedString implements NSSecureCoding
Note for subclassing NSTextStorage: NSTextStorage is a semi-abstract subclass of NSMutableAttributedString. It implements change management (beginEditing/endEditing), verification of attributes, delegate handling, and layout management notification. The one aspect it does not implement is the actual attributed string storage --- this is left up to the subclassers, which need to override the two NSMutableAttributedString primitives in addition to two NSAttributedString primitives: - (NSString *)string; - (NSDictionary *)attributesAtIndex:(NSUInteger)location effectiveRange:(NSRangePointer)range; - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)str; - (void)setAttributes:(NSDictionary *)attrs range:(NSRange)range; These primitives should perform the change then call edited:range:changeInLength: to get everything else to happen. API-Since: 7.0
-
-
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 protectedNSTextStorage(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 NSTextStorage_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()voidaddLayoutManager(@NotNull NSLayoutManager aLayoutManager)Adds aLayoutManager to the receiver.static NSTextStoragealloc()static NSTextStorageallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static @NotNull NSAttributedStringattributedStringWithAttachment(@NotNull NSTextAttachment attachment)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)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)longchangeInLength()The length delta for the pending changes.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()@Nullable NSTextStorageDelegatedelegate()Delegate ***************************static java.lang.Stringdescription_static()longeditedMask()The NSTextStorageEditActions mask indicating that there are pending changes for attributes, characters, or both.NSRangeeditedRange()The range for pending changes.voideditedRangeChangeInLength(long editedMask, NSRange editedRange, long delta)Notifies and records a recent change.voidencodeWithCoder(@NotNull NSCoder coder)voidensureAttributesAreFixedInRange(NSRange range)Ensures all attributes in range are validated and ready to be used.booleanfixesAttributesLazily()Indicates if the receiver fixes invalidated attributes lazily.static longhash_static()NSTextStorageinit()NSTextStorageinitWithAttributedString(@NotNull NSAttributedString attrStr)NSTextStorageinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERNSTextStorageinitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(@NotNull NSURL markdownFile, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)These constructors have a 'baseURL' parameter.NSTextStorageinitWithDataOptionsDocumentAttributesError(@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.0NSTextStorageinitWithFileURLOptionsDocumentAttributesError(@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.NSTextStorageinitWithFormatOptionsLocale(@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).NSTextStorageinitWithFormatOptionsLocaleArguments(@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).NSTextStorageinitWithFormatOptionsLocaleContext(@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).NSTextStorageinitWithFormatOptionsLocaleContextArguments(@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).NSTextStorageinitWithMarkdownOptionsBaseURLError(@NotNull NSData markdown, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 15.0NSTextStorageinitWithMarkdownStringOptionsBaseURLError(@NotNull java.lang.String markdownString, @Nullable NSAttributedStringMarkdownParsingOptions options, @Nullable NSURL baseURL, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 15.0NSTextStorageinitWithString(@NotNull java.lang.String str)NSTextStorageinitWithStringAttributes(@NotNull java.lang.String str, @Nullable NSDictionary<java.lang.String,?> attrs)NSTextStorageinitWithURLOptionsDocumentAttributesError(@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)voidinvalidateAttributesInRange(NSRange range)Notes the range of attributes that requires validation.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)@NotNull NSArray<? extends NSLayoutManager>layoutManagers()NSLayoutManager objects owned by the receiver.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 NSTextStoragelocalizedAttributedStringWithFormat(@NotNull NSAttributedString format, java.lang.Object... varargs)static @NotNull NSTextStoragelocalizedAttributedStringWithFormatContext(@NotNull NSAttributedString format, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)static @NotNull NSTextStoragelocalizedAttributedStringWithFormatOptions(@NotNull NSAttributedString format, long options, java.lang.Object... varargs)static @NotNull NSTextStoragelocalizedAttributedStringWithFormatOptionsContext(@NotNull NSAttributedString format, long options, @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)static NSTextStoragenew_objc()static @Nullable NSTextStorageobjectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)voidprocessEditing()Sends out -textStorage:willProcessEditing, fixes the attributes, sends out -textStorage:didProcessEditing, and notifies the layout managers of change with the -processEditingForTextStorage:edited:range:changeInLength:invalidatedRange: method.static @NotNull NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()voidremoveLayoutManager(@NotNull NSLayoutManager aLayoutManager)Removes aLayoutManager from the receiver if already owned by it.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDelegate(@Nullable NSTextStorageDelegate value)Delegate ***************************voidsetDelegate_unsafe(@Nullable NSTextStorageDelegate value)Delegate ***************************voidsetTextStorageObserver(@Nullable NSTextStorageObserving value)NSTextStorageObserving *************************** An object conforming to NSTextStorageObserving observing and retaining NSTextStorage API-Since: 15.0voidsetTextStorageObserver_unsafe(@Nullable NSTextStorageObserving value)NSTextStorageObserving *************************** An object conforming to NSTextStorageObserving observing and retaining NSTextStorage API-Since: 15.0static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()@Nullable NSTextStorageObservingtextStorageObserver()NSTextStorageObserving *************************** An object conforming to NSTextStorageObserving observing and retaining NSTextStorage API-Since: 15.0static booleanuseStoredAccessor()Deprecated.static longversion_static()static @NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
Methods inherited from class apple.foundation.NSMutableAttributedString
addAttributesRange, addAttributeValueRange, appendAttributedString, appendLocalizedFormat, beginEditing, deleteCharactersInRange, endEditing, fixAttributesInRange, insertAttributedStringAtIndex, mutableString, readFromDataOptionsDocumentAttributesError, readFromFileURLOptionsDocumentAttributesError, readFromURLOptionsDocumentAttributesError, removeAttributeRange, replaceCharactersInRangeWithAttributedString, replaceCharactersInRangeWithString, setAttributedString, setAttributesRange
-
Methods inherited from class apple.foundation.NSAttributedString
attributeAtIndexEffectiveRange, attributeAtIndexLongestEffectiveRangeInRange, attributedStringByInflectingString, attributedSubstringFromRange, attributesAtIndexEffectiveRange, attributesAtIndexLongestEffectiveRangeInRange, boundingRectWithSizeOptionsContext, containsAttachmentsInRange, copyWithZone, dataFromRangeDocumentAttributesError, drawAtPoint, drawInRect, drawWithRectOptionsContext, 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 NSTextStorage alloc()
-
allocWithZone
public static NSTextStorage 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 NSTextStorage 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()
-
addLayoutManager
public void addLayoutManager(@NotNull @NotNull NSLayoutManager aLayoutManager)Adds aLayoutManager to the receiver. Sends -[NSLayoutManager setTextStorage:] to aLayoutManager with the receiver.
-
changeInLength
public long changeInLength()
The length delta for the pending changes.
-
delegate
@Nullable public @Nullable NSTextStorageDelegate delegate()
Delegate ***************************
-
editedRangeChangeInLength
public void editedRangeChangeInLength(long editedMask, NSRange editedRange, long delta)Notifies and records a recent change. If there are no outstanding -beginEditing calls, this method calls -processEditing to trigger post-editing processes. This method has to be called by the primitives after changes are made if subclassed and overridden. editedRange is the range in the original string (before the edit).
-
editedMask
public long editedMask()
The NSTextStorageEditActions mask indicating that there are pending changes for attributes, characters, or both.
-
editedRange
public NSRange editedRange()
The range for pending changes. {NSNotFound, 0} when there is no pending changes.
-
ensureAttributesAreFixedInRange
public void ensureAttributesAreFixedInRange(NSRange range)
Ensures all attributes in range are validated and ready to be used. An NSTextStorage that is lazy is required to call the following method before accessing any attributes. This gives the attribute fixing a chance to occur if necessary. NSTextStorage subclasses that wish to support laziness must call it from all attribute accessors that they implement. The default concrete subclass does call this from its accessors.
-
fixesAttributesLazily
public boolean fixesAttributesLazily()
Indicates if the receiver fixes invalidated attributes lazily. The concrete UIKit subclass fixes attributes lazily by default. The abstract class (hence, all custom subclasses) is not lazy.
-
init
public NSTextStorage init()
- Overrides:
initin classNSMutableAttributedString
-
initWithAttributedString
public NSTextStorage initWithAttributedString(@NotNull @NotNull NSAttributedString attrStr)
- Overrides:
initWithAttributedStringin classNSMutableAttributedString
-
initWithCoder
public NSTextStorage initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classNSMutableAttributedString
-
initWithDataOptionsDocumentAttributesError
public NSTextStorage 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 classNSMutableAttributedString
-
initWithFileURLOptionsDocumentAttributesError
@Deprecated public NSTextStorage 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 classNSMutableAttributedString
-
initWithString
public NSTextStorage initWithString(@NotNull @NotNull java.lang.String str)
- Overrides:
initWithStringin classNSMutableAttributedString
-
initWithStringAttributes
public NSTextStorage initWithStringAttributes(@NotNull @NotNull java.lang.String str, @Nullable @Nullable NSDictionary<java.lang.String,?> attrs)
- Overrides:
initWithStringAttributesin classNSMutableAttributedString
-
initWithURLOptionsDocumentAttributesError
public NSTextStorage 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 classNSMutableAttributedString
-
invalidateAttributesInRange
public void invalidateAttributesInRange(NSRange range)
Notes the range of attributes that requires validation. If the NSTextStorage is not lazy this just calls fixAttributesInRange:. If it is lazy this instead just records the range needing fixing in order to do it later.
-
layoutManagers
@NotNull public @NotNull NSArray<? extends NSLayoutManager> layoutManagers()
NSLayoutManager objects owned by the receiver.
-
processEditing
public void processEditing()
Sends out -textStorage:willProcessEditing, fixes the attributes, sends out -textStorage:didProcessEditing, and notifies the layout managers of change with the -processEditingForTextStorage:edited:range:changeInLength:invalidatedRange: method. Invoked from -edited:range:changeInLength: or -endEditing.
-
removeLayoutManager
public void removeLayoutManager(@NotNull @NotNull NSLayoutManager aLayoutManager)Removes aLayoutManager from the receiver if already owned by it. Sends -[NSLayoutManager setTextStorage:] to aLayoutManager with nil.
-
setDelegate_unsafe
public void setDelegate_unsafe(@Nullable @Nullable NSTextStorageDelegate value)Delegate ***************************
-
setDelegate
public void setDelegate(@Nullable @Nullable NSTextStorageDelegate value)Delegate ***************************
-
_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 classNSMutableAttributedString
-
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 classNSMutableAttributedString
-
objectWithItemProviderDataTypeIdentifierError
@Nullable public static @Nullable NSTextStorage 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 NSTextStorage _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 classNSMutableAttributedString
-
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 classNSMutableAttributedString
-
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 classNSMutableAttributedString
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding- Overrides:
encodeWithCoderin 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)
-
initWithContentsOfMarkdownFileAtURLOptionsBaseURLError
public NSTextStorage 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 classNSMutableAttributedString
-
initWithFormatOptionsLocale
public NSTextStorage 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 classNSMutableAttributedString
-
initWithFormatOptionsLocaleArguments
public NSTextStorage 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 classNSMutableAttributedString
-
initWithMarkdownOptionsBaseURLError
public NSTextStorage 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 classNSMutableAttributedString
-
initWithMarkdownStringOptionsBaseURLError
public NSTextStorage 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 classNSMutableAttributedString
-
localizedAttributedStringWithFormat
@NotNull public static @NotNull NSTextStorage localizedAttributedStringWithFormat(@NotNull @NotNull NSAttributedString format, java.lang.Object... varargs)
-
localizedAttributedStringWithFormatOptions
@NotNull public static @NotNull NSTextStorage localizedAttributedStringWithFormatOptions(@NotNull @NotNull NSAttributedString format, long options, java.lang.Object... varargs)
-
setTextStorageObserver_unsafe
public void setTextStorageObserver_unsafe(@Nullable @Nullable NSTextStorageObserving value)NSTextStorageObserving *************************** An object conforming to NSTextStorageObserving observing and retaining NSTextStorage API-Since: 15.0
-
setTextStorageObserver
public void setTextStorageObserver(@Nullable @Nullable NSTextStorageObserving value)NSTextStorageObserving *************************** An object conforming to NSTextStorageObserving observing and retaining NSTextStorage API-Since: 15.0
-
textStorageObserver
@Nullable public @Nullable NSTextStorageObserving textStorageObserver()
NSTextStorageObserving *************************** An object conforming to NSTextStorageObserving observing and retaining NSTextStorage API-Since: 15.0
-
initWithFormatOptionsLocaleContext
public NSTextStorage 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 classNSMutableAttributedString
-
initWithFormatOptionsLocaleContextArguments
public NSTextStorage 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 classNSMutableAttributedString
-
localizedAttributedStringWithFormatContext
@NotNull public static @NotNull NSTextStorage localizedAttributedStringWithFormatContext(@NotNull @NotNull NSAttributedString format, @NotNull @NotNull NSDictionary<java.lang.String,?> context, java.lang.Object... varargs)
-
localizedAttributedStringWithFormatOptionsContext
@NotNull public static @NotNull NSTextStorage 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.
-
-