NSTextFieldCell 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.
- macOS 10.0+
All of the methods declared by this class are also declared by the
NSTextField class, which uses
NSTextFieldCell objects to draw and edit text. These
NSTextField cover methods call the corresponding
Placeholder strings, set using the
placeholderAttributedString 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.