You can subclass NSView and do something like this:
- (void)drawRect:(NSRect)dirtyRect { [[NSColor orangeColor] set]; NSBezierPath *path = [NSBezierPath bezierPath]; [path appendBezierPathWithRoundedRect:outerFrame xRadius:5 yRadius:5]; [path setLineWidth:4.0]; [path stroke]; }
and of course change the radius values ββdepending if you want rounded corners or not.
source share