質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top