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: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
Description forthcoming.

### docFormatFromRange: documentAttributes:

- (NSData*) docFormatFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### doubleClickAtIndex:

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

### fileWrapperFromRange: documentAttributes: error:

- (NSFileWrapper*) fileWrapperFromRange: (NSRange)range documentAttributes: (NSDictionary*)dict error: (NSError**)error;
Availability: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
Description forthcoming.

### initWithDocFormat: documentAttributes:

- (id) initWithDocFormat: (NSData*)data documentAttributes: (NSDictionary**)dict;
Availability: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
Description forthcoming.

### itemNumberInTextList: atIndex:

- (NSRange) itemNumberInTextList: (NSTextList*)list atIndex: (unsigned)location;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### lineBreakBeforeIndex: withinRange:

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

### lineBreakByHyphenatingBeforeIndex: withinRange:

- (unsigned) lineBreakByHyphenatingBeforeIndex: (NSUInteger)location withinRange: (NSRange)aRange;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### nextWordFromIndex: forward:

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

### rangeOfTextBlock: atIndex:

- (NSRange) rangeOfTextBlock: (NSTextBlock*)block atIndex: (unsigned)location;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### rangeOfTextList: atIndex:

- (NSRange) rangeOfTextList: (NSTextList*)list atIndex: (unsigned)location;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### rangeOfTextTable: atIndex:

- (NSRange) rangeOfTextTable: (NSTextTable*)table atIndex: (unsigned)location;
Availability: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
Description forthcoming.

### readFromData: options: documentAttributes: error:

- (BOOL) readFromData: (NSData*)data options: (NSDictionary*)options documentAttributes: (NSDictionary**)documentAttributes error: (NSError**)error;
Availability: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
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