NSScrollView and lion .. is it possible to only show scrollbars when scrolling

1.1k views Asked by At

Is it possible to have an NSScrollView ignore the system preferences setting and only show scrollers when scrolling. My application is designed for the overlay style scrollers only unfortunately, so I want to avoid having to adjust the containing content views.

Is this possible?

1

There are 1 answers

2
AudioBubble On BEST ANSWER

I would take a look at NSScroller's setScrollerStyle:. That should do the job.

However, I'd like to share that I personally think forcing users into using one style of scrollers over the other is indicative of bad design. The system allows users to choose and I believe apps should honor that choice. The fact that your content view doesn't handle horizontal nor vertical resizing is a big red flag and I would revisit that design choice.

Good luck.