The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
The current implementation will attempt to assign a default value for selectionColor if backgroundColor is white. There's two issues with that:
backgroundColor is likely in the NSNamedColorSpace, whereas it is being compared to [NSColor whiteColor], which is in the NSCalibratedWhiteColorSpace. That comparision will always return false.
Users will probably expect the selected item to be highlighted in a different color even if the background color is not white. For example, the consider a scenario where the default background color is white, and the alternate background color is grey. It makes sense to always highlight the selected row in blue. This aligns with the behavior when highlightedTableRowBackgroundColor is defined.
The current implementation will attempt to assign a default value for selectionColor if backgroundColor is white. There's two issues with that:
backgroundColor
is likely in theNSNamedColorSpace
, whereas it is being compared to[NSColor whiteColor]
, which is in theNSCalibratedWhiteColorSpace
. That comparision will always return false.highlightedTableRowBackgroundColor
is defined.