Add remaining changes contributed by testplant.

This commit is contained in:
Gregory John Casamento 2021-10-27 15:18:23 -04:00
parent ac5b949f2a
commit 7023c7d06d
8 changed files with 43 additions and 16 deletions

View file

@ -250,10 +250,10 @@
NSAttributedString *attrStr;
attrStr = [super _drawAttributedString];
if (attrStr == nil)
if ((attrStr == nil) || ([[attrStr string] length] == 0))
{
attrStr = [self placeholderAttributedString];
if (attrStr == nil)
if ((attrStr == nil) || ([[attrStr string] length] == 0))
{
NSString *string;
NSDictionary *attributes;
@ -286,6 +286,14 @@
}
}
- (void) _updateFieldEditor: (NSText*)textObject
{
[super _updateFieldEditor: textObject];
[textObject setDrawsBackground: _textfieldcell_draws_background];
[textObject setBackgroundColor: _background_color];
[textObject setTextColor: _text_color];
}
- (BOOL) isOpaque
{
if (_textfieldcell_draws_background == NO