Up

# NSAttributedStringAdditions

### Authors

Richard Frith-Macdonald (`richard@brainstorm.co.uk`)

> Categories which add capabilities to NSAttributedString

Copyright: (C) 1999 Free Software Foundation, Inc.

### Contents -

1. Software documentation for the NSAttributedString(AppKit) category
2. Software documentation for the NSMutableAttributedString(AppKit) category

# Software documentation for the NSAttributedString(AppKit) category

## NSAttributedString(AppKit)

> Declared in:
>   AppKit/NSAttributedString.h

Availability: MacOS-X 10.0.0
Description forthcoming.
Method summary

- +textFileTypes
- +textPasteboardTypes
- +textTypes
- +textUnfilteredFileTypes
- +textUnfilteredPasteboardTypes
- +textUnfilteredTypes
- -RTFDFileWrapperFromRange:documentAttributes:
- -RTFDFromRange:documentAttributes:
- -RTFFromRange:documentAttributes:
- -containsAttachments
- -dataFromRange:documentAttributes:error:
- -docFormatFromRange:documentAttributes:
- -doubleClickAtIndex:
- -fileWrapperFromRange:documentAttributes:error:
- -fontAttributesInRange:
- -initWithData:options:documentAttributes:error:
- -initWithDocFormat:documentAttributes:
- -initWithHTML:baseURL:documentAttributes:
- -initWithHTML:documentAttributes:
- -initWithHTML:options:documentAttributes:
- -initWithPath:documentAttributes:
- -initWithRTF:documentAttributes:
- -initWithRTFD:documentAttributes:
- -initWithRTFDFileWrapper:documentAttributes:
- -initWithURL:documentAttributes:
- -initWithURL:options:documentAttributes:error:
- -itemNumberInTextList:atIndex:
- -lineBreakBeforeIndex:withinRange:
- -lineBreakByHyphenatingBeforeIndex:withinRange:
- -nextWordFromIndex:forward:
- -rangeOfTextBlock:atIndex:
- -rangeOfTextList:atIndex:
- -rangeOfTextTable:atIndex:
- -rulerAttributesInRange:

### textFileTypes

+ (NSArray*) textFileTypes;
Availability: MacOS-X 10.0.0
Description forthcoming.

### textPasteboardTypes

+ (NSArray*) textPasteboardTypes;
Availability: MacOS-X 10.0.0
Description forthcoming.

### textTypes

+ (NSArray*) textTypes;
Availability: MacOS-X 10.5.0
Description forthcoming.

### textUnfilteredFileTypes

+ (NSArray*) textUnfilteredFileTypes;
Availability: MacOS-X 10.0.0
Description forthcoming.

### textUnfilteredPasteboardTypes

+ (NSArray*) textUnfilteredPasteboardTypes;
Availability: MacOS-X 10.0.0
Description forthcoming.

### textUnfilteredTypes

+ (NSArray*) textUnfilteredTypes;
Availability: MacOS-X 10.5.0
Description forthcoming.

### RTFDFileWrapperFromRange: documentAttributes:

- (NSFileWrapper*) RTFDFileWrapperFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### RTFDFromRange: documentAttributes:

- (NSData*) RTFDFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### RTFFromRange: documentAttributes:

- (NSData*) RTFFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### containsAttachments

- (BOOL) containsAttachments;
Availability: MacOS-X 10.0.0
Description forthcoming.

### dataFromRange: documentAttributes: error:

- (NSData*) dataFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### docFormatFromRange: documentAttributes:

- (NSData*) docFormatFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict;
Availability: MacOS-X 10.3.0
Description forthcoming.

### doubleClickAtIndex:

- (NSRange) doubleClickAtIndex: (NSUInteger)location;
Availability: MacOS-X 10.0.0
Description forthcoming.

### fileWrapperFromRange: documentAttributes: error:

- (NSFileWrapper*) fileWrapperFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fontAttributesInRange:

- (NSDictionary*) fontAttributesInRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithData: options: documentAttributes: error:

- (id) initWithData: (NSData*)data options: (NSDictionary*)options documentAttributes: (NSDictionary**)dict error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### initWithDocFormat: documentAttributes:

- (id) initWithDocFormat: (NSData*)data documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.3.0
Description forthcoming.

### initWithHTML: baseURL: documentAttributes:

- (id) initWithHTML: (NSData*)data baseURL: (NSURL*)base documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithHTML: documentAttributes:

- (id) initWithHTML: (NSData*)data documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithHTML: options: documentAttributes:

- (id) initWithHTML: (NSData*)data options: (NSDictionary*)options documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.3.0
Description forthcoming.

### initWithPath: documentAttributes:

- (id) initWithPath: (NSString*)path documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithRTF: documentAttributes:

- (id) initWithRTF: (NSData*)data documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithRTFD: documentAttributes:

- (id) initWithRTFD: (NSData*)data documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithRTFDFileWrapper: documentAttributes:

- (id) initWithRTFDFileWrapper: (NSFileWrapper*)wrapper documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithURL: documentAttributes:

- (id) initWithURL: (NSURL*)url documentAttributes: (NSDictionary**)dict;
Availability: MacOS-X 10.0.0
Description forthcoming.

### initWithURL: options: documentAttributes: error:

- (id) initWithURL: (NSURL*)url options: (NSDictionary*)options documentAttributes: (NSDictionary**)dict error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### itemNumberInTextList: atIndex:

- (NSInteger) itemNumberInTextList: (NSTextList*)list atIndex: (NSUInteger)location;
Availability: MacOS-X 10.4.0
Description forthcoming.

### lineBreakBeforeIndex: withinRange:

- (NSUInteger) lineBreakBeforeIndex: (NSUInteger)location withinRange: (NSRange)aRange;
Availability: MacOS-X 10.0.0
Description forthcoming.

### lineBreakByHyphenatingBeforeIndex: withinRange:

- (NSUInteger) lineBreakByHyphenatingBeforeIndex: (NSUInteger)location withinRange: (NSRange)aRange;
Availability: MacOS-X 10.3.0
Description forthcoming.

### nextWordFromIndex: forward:

- (NSUInteger) nextWordFromIndex: (NSUInteger)location forward: (BOOL)isForward;
Availability: MacOS-X 10.0.0
Description forthcoming.

### rangeOfTextBlock: atIndex:

- (NSRange) rangeOfTextBlock: (NSTextBlock*)block atIndex: (NSUInteger)location;
Availability: MacOS-X 10.4.0
Description forthcoming.

### rangeOfTextList: atIndex:

- (NSRange) rangeOfTextList: (NSTextList*)list atIndex: (NSUInteger)location;
Availability: MacOS-X 10.4.0
Description forthcoming.

### rangeOfTextTable: atIndex:

- (NSRange) rangeOfTextTable: (NSTextTable*)table atIndex: (NSUInteger)location;
Availability: MacOS-X 10.4.0
Description forthcoming.

### rulerAttributesInRange:

- (NSDictionary*) rulerAttributesInRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

# Software documentation for the NSMutableAttributedString(AppKit) category

## NSMutableAttributedString(AppKit)

> Declared in:
>   AppKit/NSAttributedString.h

Availability: MacOS-X 10.0.0
Description forthcoming.
Method summary

- -applyFontTraits:range:
- -fixAttachmentAttributeInRange:
- -fixAttributesInRange:
- -fixFontAttributeInRange:
- -fixParagraphStyleAttributeInRange:
- -readFromData:options:documentAttributes:
- -readFromData:options:documentAttributes:error:
- -readFromURL:options:documentAttributes:
- -readFromURL:options:documentAttributes:error:
- -setAlignment:range:
- -setBaseWritingDirection:range:
- -subscriptRange:
- -superscriptRange:
- -unscriptRange:
- -updateAttachmentsFromPath:

### applyFontTraits: range:

- (void) applyFontTraits: (NSFontTraitMask)traitMask range: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### fixAttachmentAttributeInRange:

- (void) fixAttachmentAttributeInRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### fixAttributesInRange:

- (void) fixAttributesInRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### fixFontAttributeInRange:

- (void) fixFontAttributeInRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### fixParagraphStyleAttributeInRange:

- (void) fixParagraphStyleAttributeInRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### readFromData: options: documentAttributes:

- (BOOL) readFromData: (NSData*)data options: (NSDictionary*)options documentAttributes: (NSDictionary**)documentAttributes;
Availability: MacOS-X 10.3.0
Description forthcoming.

### readFromData: options: documentAttributes: error:

- (BOOL) readFromData: (NSData*)data options: (NSDictionary*)options documentAttributes: (NSDictionary**)documentAttributes error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### readFromURL: options: documentAttributes:

- (BOOL) readFromURL: (NSURL*)url options: (NSDictionary*)options documentAttributes: (NSDictionary**)documentAttributes;
Availability: MacOS-X 10.0.0
Description forthcoming.

### readFromURL: options: documentAttributes: error:

- (BOOL) readFromURL: (NSURL*)url options: (NSDictionary*)options documentAttributes: (NSDictionary**)documentAttributes error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setAlignment: range:

- (void) setAlignment: (NSTextAlignment)alignment range: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### setBaseWritingDirection: range:

- (void) setBaseWritingDirection: (NSWritingDirection)writingDirection range: (NSRange)range;
Availability: MacOS-X 10.4.0
Description forthcoming.

### subscriptRange:

- (void) subscriptRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### superscriptRange:

- (void) superscriptRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### unscriptRange:

- (void) unscriptRange: (NSRange)range;
Availability: MacOS-X 10.0.0
Description forthcoming.

### updateAttachmentsFromPath:

- (void) updateAttachmentsFromPath: (NSString*)path;
Availability: MacOS-X 10.0.0
Description forthcoming.

Up