How to change NSScroller length

204 Views Asked by At

Is there any api to change the scroller length, I would like to do the same without subclassing NSScroller.

1

There are 1 best solutions below

1
On

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.