Function

CFAttributedStringCreateMutable

Creates a mutable attributed string.

Declaration

CFMutableAttributedStringRef CFAttributedStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength);

Parameters

alloc

An allocator to be used to allocate memory for the new attributed string. Pass NULL or kCFAllocatorDefault to use the current default allocator.

maxLength

The limit on the length of the new attributed string. The string starts empty and can grow to this length (it can be shorter).

Pass 0 to specify that the maximum length is not limited. The value must not be negative.

Return Value

A new mutable attributed string. Ownership follows the The Create Rule.

See Also

Creating a CFMutableAttributedString

CFAttributedStringCreateMutableCopy

Creates a mutable copy of an attributed string.

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