2020-04-09 15:29:49 +03:00
|
|
|
#import "GBSplitView.h"
|
|
|
|
|
|
|
|
@implementation GBSplitView
|
|
|
|
{
|
|
|
|
NSColor *_dividerColor;
|
|
|
|
}
|
|
|
|
|
2020-04-24 20:37:57 +03:00
|
|
|
- (void)setDividerColor:(NSColor *)color
|
|
|
|
{
|
2020-04-09 15:29:49 +03:00
|
|
|
_dividerColor = color;
|
2021-10-23 13:36:58 +03:00
|
|
|
[self setNeedsDisplay:true];
|
2020-04-09 15:29:49 +03:00
|
|
|
}
|
|
|
|
|
2020-04-24 20:37:57 +03:00
|
|
|
- (NSColor *)dividerColor
|
|
|
|
{
|
2020-04-09 15:29:49 +03:00
|
|
|
if (_dividerColor) {
|
|
|
|
return _dividerColor;
|
|
|
|
}
|
|
|
|
return [super dividerColor];
|
|
|
|
}
|
|
|
|
|
2020-04-11 18:19:15 +03:00
|
|
|
/* Mavericks comaptibility */
|
|
|
|
- (NSArray<NSView *> *)arrangedSubviews
|
|
|
|
{
|
|
|
|
if (@available(macOS 10.11, *)) {
|
|
|
|
return [super arrangedSubviews];
|
2020-04-24 20:37:57 +03:00
|
|
|
}
|
|
|
|
else {
|
2020-04-11 18:19:15 +03:00
|
|
|
return [self subviews];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-09 15:29:49 +03:00
|
|
|
@end
|