mirror of
https://github.com/libretro/sameduck.git
synced 2024-11-23 09:09:41 +00:00
34 lines
532 B
Objective-C
34 lines
532 B
Objective-C
#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];
|
|
}
|
|
|
|
/* Mavericks comaptibility */
|
|
- (NSArray<NSView *> *)arrangedSubviews
|
|
{
|
|
if (@available(macOS 10.11, *)) {
|
|
return [super arrangedSubviews];
|
|
}
|
|
else {
|
|
return [self subviews];
|
|
}
|
|
}
|
|
|
|
@end
|