Hi,
So it seems like the scroller style behavior changed between Yosemite and El Capitan. I have two macs, one running the latest version of Xcode and the latest Yosemite and one running the latest Xcode and El Capitan.
In both cases, the System Preferences -> General -> Show Scroll Bars is set to the default of "Automatically based on mouse or trackpad".
I have an NSTextView in my OS X app. When running the app on Yosemite, the scrollbars autohide (i.e. they show when the text view has focused and I'm scrolling in it, otherwise they hide). On El Capitan, the scrollbars stay visible permanently, whether or not the textview has focus and whether or not I am scrolling in it.
The only way to make the scrollbars on El Capitan revert to their Yosemite behavior is to change System Preferences -> General -> Show Scroll Bars to "When Scrolling". Setting the scrollview's scrollerStyle to NSScrollerStyleOverlay does nothing on El Capitan.
The app is linked against Yosemite in Xcode.
This is a very serious bug in my opinion. The reason? Because now my screenshots will be wrong on either El Capitan or Yosemite, given that most users will be using my app with the default of System Preferences -> General -> Show Scroll Bars set to the default of "Automatically based on mouse or trackpad". If I take the screenshots while running my app on Yosemite, they'll not show the scrollbars and will look right for Yosemite users of my app but wrong for El Capitan users. If I take the screenshots on El Capitan, they'll look right for El Capitan users but wrong for Yosemite.
The App Store does NOT allow me to use different screenshots for El Capitan vs Yosemite as far as I know.
So this is a serious bug and I need Apple's help to get around this. How can I take screenshots that show the appropriate default scroller appearance/behavior for both El Capitan and Yosemite?
Thanks!