[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #35101] Should NSTextField manage colors for field editor while edi
From: |
Banlu Kemiyatorn |
Subject: |
[bug #35101] Should NSTextField manage colors for field editor while editing? |
Date: |
Sun, 18 Dec 2011 14:25:25 +0000 |
User-agent: |
Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 |
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 #35101] Should NSTextField manage colors for field editor while editing?,
Banlu Kemiyatorn <=