A reference to a CFAttributedString object.
- iOS 2.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
CFAttributed type refers to an object that combines a CFString object with a collection of attributes that specify how the characters in the string should be displayed. CFAttributedString is an opaque type that defines the characteristics and behavior of CFAttributedString objects.
Values of type
CFAttributed may refer to immutable or mutable strings, as CFMutableAttributedString objects respond to all functions intended for immutable CFAttributedString objects. Functions which accept
CFAttributed values, and which need to hold on to the values immutably, should call
CFAttributed (instead of
CFRetain) to do so.