Gets as a mutable string the string for an attributed string.


CFMutableStringRef CFAttributedStringGetMutableString(CFMutableAttributedStringRef aStr);



The mutable attributed string from which to retrieve the string.

Return Value

The string for the specified attributed string as a mutable string.


This function allows you to edit the character contents of the attributed string as if it were a CFMutableString. Attributes corresponding to the edited range are appropriately modified. If, as a result of the edit, new characters are introduced into the string, they inherit the attributes of the first replaced character from range. If no existing characters are replaced by the edit, the new characters inherit the attributes of the character preceding range if it has any, otherwise of the character following range. If the initial string is empty, the attributes for the new characters are also empty.

See Also

Modifying a CFMutableAttributedString


Defers internal consistency-checking and coalescing for a mutable attributed string.


Re-enables internal consistency-checking and coalescing for a mutable attributed string.


Removes the value of a single attribute over a specified range.


Modifies the string of an attributed string.


Replaces the attributed substring over a range with another attributed string.


Sets the value of a single attribute over the specified range.


Sets the value of attributes of a mutable attributed string over a specified range.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software