@implementation CustomEnclosingSplitview
-(void) drawRect:(NSRect)rect
{
[super drawRect:rect];
// All of this below draws the single-pixel line at the top of the outer splitview.
NSRect tgtRect = [self frame];
NSBezierPath *path = [NSBezierPath bezierPath];
[path setLineWidth:0];
[path moveToPoint:NSMakePoint( NSMinX( tgtRect ), NSMinY( tgtRect ) + (.5 / [[self window] userSpaceScaleFactor]) )];
[path lineToPoint:NSMakePoint( NSMaxX( tgtRect ), NSMinY( tgtRect ) + (.5 / [[self window] userSpaceScaleFactor]) )];
[[NSColor colorWith8BitRed:165 green:165 blue:165 alpha:1.0] set];