From 900e070d256e699985357b64ea9986544f98b88f Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 9 Nov 1999 23:08:58 +0000 Subject: [PATCH] Set up correctly text color attributes when editing git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5148 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTextFieldCell.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/NSTextFieldCell.m b/Source/NSTextFieldCell.m index 46eca3438..c9a3950f0 100644 --- a/Source/NSTextFieldCell.m +++ b/Source/NSTextFieldCell.m @@ -129,9 +129,13 @@ text_color = aColor; } -- (id) setUpFieldEditorAttributes: (id)textObject +- (NSText *) setUpFieldEditorAttributes: (NSText *)textObject { - return nil; + textObject = [super setUpFieldEditorAttributes: textObject]; + [textObject setDrawsBackground: draw_background]; + [textObject setBackgroundColor: background_color]; + [textObject setTextColor: text_color]; + return textObject; } - (NSColor *) textColor