Introduction to Attributed String Programming Guide
Attributed String Programming Guide describes the attributed string objects, instantiated from the
NSAttributedString class or the CFAttributedString Core Foundation opaque type, which manage sets of text attributes, such as font and kerning, that are associated with character strings or individual characters.
Who Should Read This Document
You should read this document if you need to work directly with attributed string objects.
Organization of This Document
This programming topic contains the following articles:
“Attributed Strings” describes the attributed string objects instantiated from
NSMutableAttributedString, CFAttributedString and CFMutableAttributedString.
“Creating Attributed Strings in Cocoa” describes how to create attributed strings with data that you provide.
“Accessing Attributes” describes how to access text attributes.
“Changing an Attributed String” describes how to change characters and attributes in an attributed string.
“Drawing Attributed Strings” describes how to draw an attributed string in a view.
“RTF Files and Attributed Strings” explains how to read and write attributed strings to and from files of RTF data, and it describes Apple’s extensions to the RTF language.
“Word and Line Calculations in Attributed Strings” describes how to work with attributed strings in editors.
“Standard Attributes” describes global
NSStringconstants containing the attribute names.
For more information, refer to the following documents:
© 1997, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-10-19)