SameBoy/Cocoa/GBSplitView.m

34 lines
533 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;
2021-10-23 10:36:58 +00:00
[self setNeedsDisplay:true];
}
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