Set vertical scroller style in NSScrollView
How can I se开发者_运维技巧t the vertical scroller style in NSScrollView
?
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
Yes you can set the size in Xcode.
Or rather in Interface Builder:
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
.
精彩评论