NSScroller: Hiding the knob
NSScroller: Hiding the knob
- Subject: NSScroller: Hiding the knob
- From: Kurt Sutter <email@hidden>
- Date: Wed, 20 Apr 2011 13:38:08 +0200
Here's probably a stupid question, but I am unable to figure this out:
NSScrollView on MacOS X 10.6 and before _hides_ the knob of a scroller when its proportion becomes 1 or larger, i.e. when all of the view is visible along the direction of the scroller and there is nothing to scroll.
I have a custom view using its own scrollers (NSScroller) because NSScrollView does not allow to do what I need. However, I am unable to make the knob disappear when all of the view is visible along the scroller. I have tried calling setKnobProportion: with values of 0, 1, 2 or -1, but the knob is always there, with varying size.
I guess I could override drawKnob, but that sounds hack-ish.
Does anyone know what to do?
Thanks for any advice in advance
Kurt Sutter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden