NSMutableAttributedString (EDAppKitExtensions)


Declared In:
NSAttributedString+AppKitExtensions.h


Category Description

Various common extensions to NSMutableAttributedString.


Method Types

Appending "special" objects
- appendURL:
- appendURL:linkColor:
- appendImage:name:
- appendAttachment:name:
Urlifier
- urlify
- urlifyWithLinkColor:
- urlifyWithLinkColor:range:

Instance Methods

appendAttachment:name:

- (void)appendAttachment:(NSData *)data name:(NSString *)name

Appends the attachments represented by data with the filename name to the string.


appendImage:name:

- (void)appendImage:(NSData *)data name:(NSString *)name

Appends the image represented by data with the filename name to the string. The image is displayed inline if possible.


appendURL:

- (void)appendURL:(NSString *)aURL

Appends the string aURL as a clickable, underlined URL in the default link color.


appendURL:linkColor:

- (void)appendURL:(NSString *)aURL linkColor:(NSColor *)linkColor

Appends the string aURL as a clickable, underlined URL in the link color specified.


urlify

- (void)urlify

Invokes urlifyWithLinkColor with the default link color.


urlifyWithLinkColor:

- (void)urlifyWithLinkColor:(NSColor *)linkColor

Invokes urlifyWithLinkColor:range: with a range covering the entire string.


urlifyWithLinkColor:range:

- (void)urlifyWithLinkColor:(NSColor *)linkColor range:(NSRange)range

Searches the section of the reciever defined by range for URLs. All those found are reformatted to be underlined and clickable and have the link color specified. Schemes recognized are http, ftp, mailto, gopher, news.


Version 2.0 Copyright ©2002. All Rights Reserved.