Implemented setHighlighted: method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15772 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-01-30 04:26:35 +00:00
parent 3446373469
commit 4571641386

View file

@ -199,4 +199,19 @@ static NSColor *clearCol = nil;
break;
}
}
- (void)setHighlighted: (BOOL) flag
{
_cell.is_highlighted = flag;
if (flag == YES)
{
[self setBackgroundColor: [NSColor controlColor]];
}
else
{
[self setBackgroundColor: [NSColor controlShadowColor]];
}
}
@end