Question

I can't figure out what's wrong with my NSScrollers.

Since an indefinite amount of time (I have been changing a lot of things in the source code of my App, but not on it's Xib design), my NSScrollers of all of my TableViews and OutlineView which are configured with "AutoHides" will not auto-hide at-all and will be spawned in a separate NSTableColumn.

I have no clue as where to look or how to debug this behavior, expect playing randomly with Interface Builder Settings for NSScrollViews .

I haven't made any weird categories that may interfere with the proper behavior of tableViews.

enter image description here

enter image description here

Was it helpful?

Solution

After hours of searching, I finally found a nice class that can do all I need by itself :RFOverlayScrollView. It's a nice subclass of NSScroller which is both transparent and auto-hidden; and published under the MIT License.

RFOverlayScrollView

RFOverlayScrollView is an NSScrollView subclass that shows its NSScroller in iOS style even when a mouse is attached.

enter image description here

OTHER TIPS

Looks like you found what you want, but have you tried setting

[_scrollView setScrollerStyle:NSScrollerStyleOverlay];

This however hijacks the scrollbar setting, even if Show Scrollbars settings in System Preferences is set to Always.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top