From 1fc1d88b9836f21a42aafb83991e392e7dcdb382 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 16 Nov 1999 23:49:35 +0000 Subject: [PATCH] Added isOpaque method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5214 72102866-910b-0410-8b05-ffd578937521 --- Source/NSColorWell.m | 6 ++++++ Source/NSControl.m | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/NSColorWell.m b/Source/NSColorWell.m index b537d0b3c..521929dbd 100644 --- a/Source/NSColorWell.m +++ b/Source/NSColorWell.m @@ -110,6 +110,12 @@ [the_color drawSwatchInRect: insideRect]; } +- (BOOL) isOpaque +{ + return is_bordered; +} + + // // Activating // diff --git a/Source/NSControl.m b/Source/NSControl.m index a45dfea91..1c13c3604 100644 --- a/Source/NSControl.m +++ b/Source/NSControl.m @@ -192,7 +192,7 @@ static Class cellClass; - (void) setStringValue: (NSString *)aString { [self abortEditing]; - + [[self selectedCell] setStringValue: aString]; [self setNeedsDisplay: YES]; } @@ -301,6 +301,11 @@ static Class cellClass; /* * Displaying the Control and Cell */ +- (BOOL) isOpaque +{ + return [cell isOpaque]; +} + - (void) drawRect: (NSRect)aRect { [self drawCell: cell];