1

How can I set the vertical scroller style in NSScrollView?

jscs
  • 63,694
  • 13
  • 151
  • 195
user718408
  • 101
  • 1
  • 14

2 Answers2

1

Yes you can set the size in Xcode.
Or rather in Interface Builder:

enter image description here

Make sure to expand the objects panel on the left.
Then you can see two NSScroller objects in the scroll view.
Just select them and set the control size in the Inspector Panel to Small or Mini.

IluTov
  • 6,807
  • 6
  • 41
  • 103
1

If you're using Interface Builder, deselect "automatically hide scrollers". The scroll bars then become visible. Click a scroll bar and edit its control size attributes in the inspector.

If you're doing this in code:

NSScrollView* myScrollView = ...;
[[myScrollView verticalScroller] setControlSize: NSSmallControlSize]; // or whatever