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];