I am trying to create an NSScrollView with cropped corners similar to a Twitter application:

I have a subclass of NSScrollView that has added the following code:
- (void)drawRect:(NSRect)dirtyRect { NSBezierPath *pcath = [NSBezierPath bezierPathWithRoundedRect:[self bounds] xRadius:kDefaultCornerRadius yRadius:kDefaultCornerRadius]; [path setClip]; [super drawRect:dirtyRect]; }
I expected the contents of the NSScrollView to have rounded corners, but did not respect the cropped path. How can i do this?
UPDATE AND CONFIRMATION
I know how to create a custom NSScroller , I know how to make it transparent overlay. All I ask is to make the NSScrollView clip its corners, including everything it contains. NSScrollView is inside an NSView that has a background that can change, which means that overlaying the view to fake rounded corners is not an option.
source share