How to make a transparent NSScroller?
Posted
by
aquaibm
on Stack Overflow
See other posts from Stack Overflow
or by aquaibm
Published on 2011-02-03T06:55:49Z
Indexed on
2011/02/03
15:26 UTC
Read the original article
Hit count: 443
cocoa
|nsscroller
This is my application screenshot.There is only one NSScrollView on the window.I try to make all the scrollview elements transparent,and obviously parts of my code work, but the scroller doesn't.
Here is my draw code for custom NSScroller subclass.
- (void) drawRect: (NSRect)dirtyRect
{
[[NSColor clearColor] set];
NSRectFill(dirtyRect);
[self drawKnob];
}
Does anyone have a clue to make this work? Thanks a lot.
© Stack Overflow or respective owner