1

I have an NSScroller that is used to scroll some complete custom view of mine. With [scroller setScrollerStyle:[NSScroller preferredScrollerStyle]] I get the correct style of the scroller. Now when the scroller has NSScrollerStyleOverlay, I assumed it will automatically hide when it is not used. Like it does when using a standard NSScrollView. But it doesn't. It's always visible.

Is there a suggested way to hide the scrollers automatically? Or do I have to do that manual with timers etc?

V1ru8
  • 6,139
  • 4
  • 30
  • 46
  • 1
    I had the same problem, and made my own scroll view. https://github.com/hoshi-takanori/MyScrollView – hoshi Dec 28 '11 at 15:40

3 Answers3

0

See What's New in Mac OS X 10.7 — Overlay Scrollbars

Under Compatibility Notes, you may be probably hitting the 3rd case: "Any NSScroller that is not managed by an NSScrollView". Or possibly you have an "external pointing device" that doesn't fully support overlay scrollers?

Quinn Taylor
  • 44,553
  • 16
  • 113
  • 131
0

Choose Your scroller and go to "Attributes inspector" and check checkbox "Automatically Hide Scroller". That should do it.

Justin Boo
  • 10,132
  • 8
  • 50
  • 71
  • You're talking about the `NSScrollView`. I'm talking about a `NSScroller` without a `NSScrollView`. – V1ru8 Nov 08 '11 at 11:56
0

I ended up redesigning my view's so they fit in a UIScrollView. So I worked around this problem.

V1ru8
  • 6,139
  • 4
  • 30
  • 46