Does NSView inherit the backgroundColor property from UIView, eventually?
However since macOS 10.13 a NSView-instance responds to this selector:
- (void)_debugView:(NSView *)view
{
NSString * colorName = nil;
if ([view respondsToSelector:@selector(backgroundColor)]) {
id viewObject = view;
NSColor * color = [viewObject backgroundColor];
colorName = [color description];
}
NSLog(@"{ba6935268c41f4895ee6bc2a25f7961fbf3a326e86d711819d5b965ee27c3439}@ {ba6935268c41f4895ee6bc2a25f7961fbf3a326e86d711819d5b965ee27c3439}@", view.className, colorName);
}
See also Stackoverflow.
