URL:
<http://savannah.gnu.org/bugs/?35101>
Summary: Should NSTextField manage colors for field editor
while editing?
Project: GNUstep
Submitted by: id
Submitted on: Sun 18 Dec 2011 09:25:24 PM ICT
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
if not, why bother setting colors in [NSCell -setUpFieldEditorAttributes:]
Index: NSTextField.m
===================================================================
--- NSTextField.m (revision 34315)
+++ NSTextField.m (working copy)
@@ -278,6 +278,9 @@
- (void) setBackgroundColor: (NSColor *)aColor
{
[_cell setBackgroundColor: aColor];
+
+ NSText *t = [_window fieldEditor: NO forObject: self];
+ if (t != nil) [t setBackgroundColor: aColor];
}
/** <p>Returns the color used to draw the background.</p>
@@ -335,6 +338,9 @@
- (void) setDrawsBackground: (BOOL)flag
{
[_cell setDrawsBackground: flag];
+
+ NSText *t = [_window fieldEditor: NO forObject: self];
+ if (t != nil) [t setDrawsBackground: flag];
}
/** <p>Sets the color with which the text will be draw to aColor.</p>
@@ -343,6 +349,9 @@
- (void) setTextColor: (NSColor *)aColor
{
[_cell setTextColor: aColor];
+
+ NSText *t = [_window fieldEditor: NO forObject: self];
+ if (t != nil) [t setTextColor: aColor];
}
/** <p>Returns the colour used to draw the text.</p>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35101>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep