Contents

attributedStringValue

The cell’s value as an attributed string.

Declaration

@NSCopying var attributedStringValue: NSAttributedString { get set }

Discussion

Use this property to get the value of the cell interpreted as an attributed string. The textual attributes included in the string are the default paragraph style, the cell’s font and alignment, and whether the cell is enabled and scrollable.

When setting the value of this property, if the cell has a formatter, but the formatter does not understand the attributed string, the formatter marks the cell’s object as invalid. If the receiver is not a text-type cell, it is converted to one before the value is set.

If you use a class that has an attributedStringValue property, the cell gets the string from that property instead of using the stringValue property.

See Also

Modifying Textual Attributes