public class NSTextStorage extends NSMutableAttributedString implements NSSecureCoding
- (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.
NSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlock, NSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlock, NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler, NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler, NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler, NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retNSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler| Modifier | Constructor and Description |
|---|---|
protected |
NSTextStorage(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
long |
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
NSTextStorage |
_objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
NSArray<java.lang.String> |
_readableTypeIdentifiersForItemProvider() |
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
NSArray<java.lang.String> |
_writableTypeIdentifiersForItemProvider_static() |
static boolean |
accessInstanceVariablesDirectly() |
void |
addLayoutManager(NSLayoutManager aLayoutManager)
Adds aLayoutManager to the receiver.
|
static NSTextStorage |
alloc() |
static NSTextStorage |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static NSAttributedString |
attributedStringWithAttachment(NSTextAttachment attachment) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
long |
changeInLength()
The length delta for the pending changes.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
NSTextStorageDelegate |
delegate()
Delegate ***************************
|
static java.lang.String |
description_static() |
long |
editedMask()
The NSTextStorageEditActions mask indicating that there are pending changes for attributes, characters, or both.
|
NSRange |
editedRange()
The range for pending changes.
|
void |
editedRangeChangeInLength(long editedMask,
NSRange editedRange,
long delta)
Notifies and records a recent change.
|
void |
encodeWithCoder(NSCoder coder) |
void |
ensureAttributesAreFixedInRange(NSRange range)
Ensures all attributes in range are validated and ready to be used.
|
boolean |
fixesAttributesLazily()
Indicates if the receiver fixes invalidated attributes lazily.
|
static long |
hash_static() |
NSTextStorage |
init() |
NSTextStorage |
initWithAttributedString(NSAttributedString attrStr) |
NSTextStorage |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSTextStorage |
initWithContentsOfMarkdownFileAtURLOptionsBaseURLError(NSURL markdownFile,
NSAttributedStringMarkdownParsingOptions options,
NSURL baseURL,
org.moe.natj.general.ptr.Ptr<NSError> error)
These constructors have a 'baseURL' parameter.
|
NSTextStorage |
initWithDataOptionsDocumentAttributesError(NSData data,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict,
org.moe.natj.general.ptr.Ptr<NSError> error) |
NSTextStorage |
initWithFileURLOptionsDocumentAttributesError(NSURL url,
NSDictionary<?,?> options,
org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict,
org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.
|
NSTextStorage |
initWithFormatOptionsLocale(NSAttributedString format,
long options,
NSLocale locale,
java.lang.Object... varargs)
Formats the string using the specified locale (or the canonical one, if nil).
|
NSTextStorage |
initWithFormatOptionsLocaleArguments(NSAttributedString format,
long options,
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).
|
NSTextStorage |
initWithMarkdownOptionsBaseURLError(NSData markdown,
NSAttributedStringMarkdownParsingOptions options,
NSURL baseURL,
org.moe.natj.general.ptr.Ptr<NSError> error) |
NSTextStorage |
initWithMarkdownStringOptionsBaseURLError(java.lang.String markdownString,
NSAttributedStringMarkdownParsingOptions options,
NSURL baseURL,
org.moe.natj.general.ptr.Ptr<NSError> error) |
NSTextStorage |
initWithString(java.lang.String str) |
NSTextStorage |
initWithStringAttributes(java.lang.String str,
NSDictionary<java.lang.String,?> attrs) |
NSTextStorage |
initWithURLOptionsDocumentAttributesError(NSURL url,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict,
org.moe.natj.general.ptr.Ptr<NSError> error)
Methods initializing the receiver contents with an external document data.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
void |
invalidateAttributesInRange(NSRange range)
Notes the range of attributes that requires validation.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static long |
itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSArray<? extends NSLayoutManager> |
layoutManagers()
NSLayoutManager objects owned by the receiver.
|
static void |
loadFromHTMLWithDataOptionsCompletionHandler(NSData data,
NSDictionary<java.lang.String,?> options,
NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler) |
static void |
loadFromHTMLWithFileURLOptionsCompletionHandler(NSURL fileURL,
NSDictionary<java.lang.String,?> options,
NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler) |
static void |
loadFromHTMLWithRequestOptionsCompletionHandler(NSURLRequest request,
NSDictionary<java.lang.String,?> options,
NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler) |
static void |
loadFromHTMLWithStringOptionsCompletionHandler(java.lang.String string,
NSDictionary<java.lang.String,?> options,
NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler) |
static NSTextStorage |
localizedAttributedStringWithFormat(NSAttributedString format,
java.lang.Object... varargs) |
static NSTextStorage |
localizedAttributedStringWithFormatOptions(NSAttributedString format,
long options,
java.lang.Object... varargs) |
static NSTextStorage |
new_objc() |
static NSTextStorage |
objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
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.
|
static NSArray<java.lang.String> |
readableTypeIdentifiersForItemProvider() |
void |
removeLayoutManager(NSLayoutManager aLayoutManager)
Removes aLayoutManager from the receiver if already owned by it.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDelegate_unsafe(NSTextStorageDelegate value)
Delegate ***************************
|
void |
setDelegate(NSTextStorageDelegate value)
Delegate ***************************
|
void |
setTextStorageObserver_unsafe(NSTextStorageObserving value)
NSTextStorageObserving ***************************
An object conforming to NSTextStorageObserving observing and retaining NSTextStorage
|
void |
setTextStorageObserver(NSTextStorageObserving value)
NSTextStorageObserving ***************************
An object conforming to NSTextStorageObserving observing and retaining NSTextStorage
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSTextStorageObserving |
textStorageObserver()
NSTextStorageObserving ***************************
An object conforming to NSTextStorageObserving observing and retaining NSTextStorage
|
static long |
version_static() |
static NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider_static() |
addAttributesRange, addAttributeValueRange, appendAttributedString, appendLocalizedFormat, beginEditing, deleteCharactersInRange, endEditing, fixAttributesInRange, insertAttributedStringAtIndex, mutableString, readFromDataOptionsDocumentAttributesError, readFromFileURLOptionsDocumentAttributesError, readFromURLOptionsDocumentAttributesError, removeAttributeRange, replaceCharactersInRangeWithAttributedString, replaceCharactersInRangeWithString, setAttributedString, setAttributesRangeattributeAtIndexEffectiveRange, attributeAtIndexLongestEffectiveRangeInRange, attributedStringByInflectingString, attributedSubstringFromRange, attributesAtIndexEffectiveRange, attributesAtIndexLongestEffectiveRangeInRange, boundingRectWithSizeOptionsContext, containsAttachmentsInRange, copyWithZone, dataFromRangeDocumentAttributesError, drawAtPoint, drawInRect, drawWithRectOptionsContext, enumerateAttributeInRangeOptionsUsingBlock, enumerateAttributesInRangeOptionsUsingBlock, fileWrapperFromRangeDocumentAttributesError, isEqualToAttributedString, itemProviderVisibilityForRepresentationWithTypeIdentifier, length, loadDataWithTypeIdentifierForItemProviderCompletionHandler, mutableCopyWithZone, size, string, writableTypeIdentifiersForItemProvideraccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSTextStorage alloc()
public static NSTextStorage allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static NSAttributedString attributedStringWithAttachment(NSTextAttachment attachment)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSTextStorage new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public void addLayoutManager(NSLayoutManager aLayoutManager)
public long changeInLength()
public NSTextStorageDelegate delegate()
public void editedRangeChangeInLength(long editedMask,
NSRange editedRange,
long delta)
public long editedMask()
public NSRange editedRange()
public void ensureAttributesAreFixedInRange(NSRange range)
public boolean fixesAttributesLazily()
public NSTextStorage init()
init in class NSMutableAttributedStringpublic NSTextStorage initWithAttributedString(NSAttributedString attrStr)
initWithAttributedString in class NSMutableAttributedStringpublic NSTextStorage initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class NSMutableAttributedStringpublic NSTextStorage initWithDataOptionsDocumentAttributesError(NSData data, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
initWithDataOptionsDocumentAttributesError in class NSMutableAttributedString@Deprecated public NSTextStorage initWithFileURLOptionsDocumentAttributesError(NSURL url, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
initWithFileURLOptionsDocumentAttributesError in class NSMutableAttributedStringpublic NSTextStorage initWithString(java.lang.String str)
initWithString in class NSMutableAttributedStringpublic NSTextStorage initWithStringAttributes(java.lang.String str, NSDictionary<java.lang.String,?> attrs)
initWithStringAttributes in class NSMutableAttributedStringpublic NSTextStorage initWithURLOptionsDocumentAttributesError(NSURL url, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
NSAttributedStringinitWithURLOptionsDocumentAttributesError in class NSMutableAttributedStringpublic void invalidateAttributesInRange(NSRange range)
public NSArray<? extends NSLayoutManager> layoutManagers()
public void processEditing()
public void removeLayoutManager(NSLayoutManager aLayoutManager)
public void setDelegate_unsafe(NSTextStorageDelegate value)
public void setDelegate(NSTextStorageDelegate value)
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class NSMutableAttributedStringpublic static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static in interface NSItemProviderWriting_itemProviderVisibilityForRepresentationWithTypeIdentifier_static in class NSMutableAttributedStringpublic static NSTextStorage objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
public NSTextStorage _objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
_objectWithItemProviderDataTypeIdentifierError in interface NSItemProviderReading_objectWithItemProviderDataTypeIdentifierError in class NSMutableAttributedStringpublic static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
public NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
_readableTypeIdentifiersForItemProvider in interface NSItemProviderReading_readableTypeIdentifiersForItemProvider in class NSMutableAttributedStringpublic static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
public NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
_writableTypeIdentifiersForItemProvider_static in interface NSItemProviderWriting_writableTypeIdentifiersForItemProvider_static in class NSMutableAttributedStringpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingencodeWithCoder in class NSAttributedStringpublic static void loadFromHTMLWithDataOptionsCompletionHandler(NSData data, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)
public static void loadFromHTMLWithFileURLOptionsCompletionHandler(NSURL fileURL, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)
public static void loadFromHTMLWithRequestOptionsCompletionHandler(NSURLRequest request, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)
public static void loadFromHTMLWithStringOptionsCompletionHandler(java.lang.String string,
NSDictionary<java.lang.String,?> options,
NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)
public NSTextStorage initWithContentsOfMarkdownFileAtURLOptionsBaseURLError(NSURL markdownFile, NSAttributedStringMarkdownParsingOptions options, NSURL baseURL, org.moe.natj.general.ptr.Ptr<NSError> error)
NSAttributedStringinitWithContentsOfMarkdownFileAtURLOptionsBaseURLError in class NSMutableAttributedStringpublic NSTextStorage initWithFormatOptionsLocale(NSAttributedString format, long options, NSLocale locale, java.lang.Object... varargs)
NSAttributedStringinitWithFormatOptionsLocale in class NSMutableAttributedStringpublic NSTextStorage initWithFormatOptionsLocaleArguments(NSAttributedString format, long options, NSLocale locale, org.moe.natj.general.ptr.BytePtr arguments)
NSAttributedStringinitWithFormatOptionsLocaleArguments in class NSMutableAttributedStringpublic NSTextStorage initWithMarkdownOptionsBaseURLError(NSData markdown, NSAttributedStringMarkdownParsingOptions options, NSURL baseURL, org.moe.natj.general.ptr.Ptr<NSError> error)
initWithMarkdownOptionsBaseURLError in class NSMutableAttributedStringpublic NSTextStorage initWithMarkdownStringOptionsBaseURLError(java.lang.String markdownString, NSAttributedStringMarkdownParsingOptions options, NSURL baseURL, org.moe.natj.general.ptr.Ptr<NSError> error)
initWithMarkdownStringOptionsBaseURLError in class NSMutableAttributedStringpublic static NSTextStorage localizedAttributedStringWithFormat(NSAttributedString format, java.lang.Object... varargs)
public static NSTextStorage localizedAttributedStringWithFormatOptions(NSAttributedString format, long options, java.lang.Object... varargs)
public void setTextStorageObserver_unsafe(NSTextStorageObserving value)
public void setTextStorageObserver(NSTextStorageObserving value)
public NSTextStorageObserving textStorageObserver()