Is there any api to change the scroller
length, I would like to do the same without subclassi开发者_如何学Gong NSScroller
.
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.
精彩评论