2020-04-09 12:29:49 +00:00
|
|
|
#import "GBSplitView.h"
|
|
|
|
|
|
|
|
@implementation GBSplitView
|
|
|
|
{
|
|
|
|
NSColor *_dividerColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setDividerColor:(NSColor *)color {
|
|
|
|
_dividerColor = color;
|
|
|
|
[self setNeedsDisplay:YES];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (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];
|
|
|
|
} else {
|
|
|
|
return [self subviews];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-09 12:29:49 +00:00
|
|
|
@end
|