The answer to the first question appears to be: don't look at contentSize
, look instead at [[scrollView contentView] documentRect]
.
The answer to the second is that you have to explicitly set hasVerticalScroller
and/or hasHorizontalScroller
. The scroll view will then dynamically create NSScroller
views.
You can also use setAutohidesScrollers:YES
to make those appear only when necessary.