0

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

Ram
  • 1
  • 3

1 Answers1

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