Name
NSMutableAttributedString — Mac OS X 10.0
Synopsis
NSMutableAttributedString
is a subclass of
NSAttributedString
that allows the contents and
attributes of the
string to be altered after the
object has been initialized, which is normally not possible with its
immutable superclass.
|
@interface NSMutableAttributedString : NSAttributedString
|
// Accessor Methods
|
- (void)setAttributes:(NSDictionary *)attrs range:(NSRange)range; |
- (void)setAlignment:(NSTextAlignment)alignment range:(NSRange)range; |
- (void)setAttributedString:(NSAttributedString *)attrString; |
// Instance Methods
|
- (void)appendAttributedString:(NSAttributedString *)attrString; |
- (void)addAttribute:(NSString *)name value:(id)value range:(NSRange)range; |
- (void)addAttributes:(NSDictionary *)attrs range:(NSRange)range; |
- (void)applyFontTraits:(NSFontTraitMask)traitMask range:(NSRange)range; |
- (void)beginEditing;
|
- (void)deleteCharactersInRange:(NSRange)range; |
- (void)endEditing;
|
- (void)fixAttachmentAttributeInRange:(NSRange)range; |
- (void)fixAttributesInRange:(NSRange)range; |
- (void)fixFontAttributeInRange:(NSRange)range; |
- (void)fixParagraphStyleAttributeInRange:(NSRange)range; |
- (void)insertAttributedString:(NSAttributedString *)attrString atIndex:(unsigned)loc; |
- (NSMutableString *)mutableString;
|
- (BOOL)readFromURL:(NSURL *)url options:(NSDictionary *)options documentAttributes ... |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.