Re: NSScroller width

2009-09-02 Thread Massimiliano Gargani
I'm still stuck with this problem. Anyone can drive me in the right direction? Thanks, Max Il giorno 31/ago/09, alle ore 10:34, Massimiliano Gargani ha scritto: Thanks a lot, I had to subclass also the scroll view but it partially works. Now my code is: @implementation MyScroller + (CGFlo

Re: NSScroller width

2009-08-31 Thread Massimiliano Gargani
Thanks a lot, I had to subclass also the scroll view but it partially works. Now my code is: @implementation MyScroller + (CGFloat)scrollerWidth { return 40.0f; } + (CGFloat)scrollerWidthForControlSize:(NSControlSize)controlSize { return 40.0f; } - (void)drawRect:(NSRect)rect

Re: NSScroller width

2009-08-30 Thread Brandon Walkin
Use +scrollerWidth and +scrollerWidthForControlSize. Here's a custom scroller subclass from BWToolkit which might help you out: http://bitbucket.org/bwalkin/bwtoolkit/src/tip/BWTransparentScroller.m Brandon On 2009-08-30, at 5:25 AM, Massimiliano Gargani wrote: Hi there, I've googled a lot

NSScroller width

2009-08-30 Thread Massimiliano Gargani
Hi there, I've googled a lot before post this question but I'm stucked. I'm trying to subclassing NSScroller to change the aqua look and, most important, to change the width of the vertical scroll bar. My subclass is: - (void)drawRect:(NSRect)rect { [self drawKnobSlot]; [sel