My only suggestion is to make sure your NSScrollers
have a default style or set to a class that overrides + (BOOL)isCompatibleWithOverlayScrollers
if you use your own scroller.
In IB, make sure that "Default Style" is selected in the "Scroller Handles" section, second from the top.
OS X Lion introduced the new NSScrollers
(overlay scroller), unlike the versions presented in Snow Leopard and before SL (inherited scrollers). Overlay scrollers are a type that fades in / out and draws on top of the content without a bright white background.
In some scenarios, Leo decides to use an outdated scroller instead of new overlay scrollers (because, for example, if a pointer device without a scroll wheel is connected, he cannot precisely scroll through the hidden overlay scroller)
The OS X 10.7 documentation explains this well. To summarize, check if: a) the user has disabled overlay scrollers, b) if you have an unsupported device connected, or c) you subclass NSScroller, add accessories, or forget to override + (BOOL)isCompatibleWithOverlayScrollers
.
If you donβt like the legacy scrollers that appear and want to support unsupported devices (for example, a gray scroll bar drawn on top of content that does not fade in / out), you should subclass NSScroller
and draw it individually. Applications like Twitter for Mac do it.
source share