An object that enhances the text display capabilities of a cell.
- macOS 10.0+
NSText class adds to the text display capabilities of the
NSCell class by allowing you to set the color of both the text and its background. You can also specify whether the cell draws its background at all.
All of the methods declared by this class are also declared by the
NSText class, which uses
NSText objects to draw and edit text. These
NSText cover methods call the corresponding
Placeholder strings, set using the
placeholder property, now appear in the text field cell if the actual string is
@"". They are drawn in grey on the cell and are not archived in the “pre-10.2” nib format.