I am subclassing NSView and implementing my own slider control (it is easier with NSView than NSControl I think), and thus I am implementing the "drawRect" method in that view.
I also implement "mouseDragged" method and calculate the position of the knob and then i call [self setNeedsDisplay:YES] to make the NSView subclass redraw.
The problem is that when I call [self setNeedsDisplay:YES] the NSView draws a grey background and border (looks like a rounded rect), but I do not draw this in the "drawRect" method and this border and background goes away as soon as I resize the superview.
What causes this background/border draw and how can I prevent it?