carrychen / RFOverlayScrollView

iOS-style NSScrollView even when a mouse is attached.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFOverlayScrollView

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

Screenshot

It does little changes to the NSScroller itself to make sure default behaviors like

  • dragging too far
  • scroller gets darker when the mouse is over the scroller
  • scroller gets wider when scrolling with the trackpad and the mouse is over the scroller

stay as intended.

Installation

CocoaPods (Recommended)

You know how to use CocoaPods, right?

Manual

  • Drag the RFOverlayScrollView/RFOverlayScrollView folder into your project

Usage

Interface Builder

  • Change the class of your scroll view to RFOverlayScrollView

RFOverlayScrollView Screenshot

  • Change the class of the vertical slider to RFOverlayScroller

RFOlverScroller Screenshot

Limitations

Currently, only vertical sliders are supported.

Credits

RFOverlayScrollView is brought to you by Rheinfabrik.

About

iOS-style NSScrollView even when a mouse is attached.

License:MIT License


Languages

Language:Objective-C 92.3%Language:Ruby 7.7%