- Declared In:
- NSAttributedString+AppKitExtensions.h
Appending "special" objectsUrlifier
- - appendURL:
- - appendURL:linkColor:
- - appendImage:name:
- - appendAttachment:name:
- - urlify
- - urlifyWithLinkColor:
- - urlifyWithLinkColor:range:
- (void)appendAttachment:(NSData *)data name:(NSString *)name
Appends the attachments represented by data with the filename name to the string.
- (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.
- (void)appendURL:(NSString *)aURL
Appends the string aURL as a clickable, underlined URL in the default link color.
- (void)appendURL:(NSString *)aURL linkColor:(NSColor *)linkColor
Appends the string aURL as a clickable, underlined URL in the link color specified.
- (void)urlify
Invokes urlifyWithLinkColor with the default link color.
- (void)urlifyWithLinkColor:(NSColor *)linkColor
Invokes urlifyWithLinkColor:range: with a range covering the entire string.
- (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.