Is there any api to change the scroller
length, I would like to do the same without subclassing NSScroller
.
Asked
Active
Viewed 190 times
0

Ram
- 1
- 3
-
You mean -setKnobProportion: method? – hoshi Dec 28 '11 at 15:45
1 Answers
1
NSScroller (as a subclass of NSView) has a setFrame: method that takes an NSRect. Pass in the appropriate width or height to set the length of your control.

tlindner
- 382
- 1
- 6
-
This doesn't work if the NSScrollView / WebView is layer-backed. In this case, the custom frame you set is being ignored. Any ideas how to fix this? :) – Raffael Oct 13 '13 at 13:58