bsnes/Cocoa/GBSplitView.m

34 lines
532 B
Mathematica
Raw Normal View History

#import "GBSplitView.h"
@implementation GBSplitView
{
NSColor *_dividerColor;
}
2020-04-24 17:37:57 +00:00
- (void)setDividerColor:(NSColor *)color
{
_dividerColor = color;
[self setNeedsDisplay:YES];
}
2020-04-24 17:37:57 +00:00
- (NSColor *)dividerColor
{
if (_dividerColor) {
return _dividerColor;
}
return [super dividerColor];
}
2020-04-11 15:19:15 +00:00
/* Mavericks comaptibility */
- (NSArray<NSView *> *)arrangedSubviews
{
if (@available(macOS 10.11, *)) {
return [super arrangedSubviews];
2020-04-24 17:37:57 +00:00
}
else {
2020-04-11 15:19:15 +00:00
return [self subviews];
}
}
@end