Coder Social home page Coder Social logo

ndcustomizablescrollview's Introduction

ndcustomizablescrollview

NDCustomizableScrollView is a NSScrollView subclass that lets you insert a view along side the NSScroller of a NSScrollView, for example in a paint or drawing program you could use it to add magnification controls.

Using NDCustomizableScrollView is very simple, use NDCustomizableScrollView in place of NSScrollView and assign your view to be placed to the left of the horizontal NSScroller to the property insertedHorizontalView. This can be done in interface builder, creating your view in interface builder and connecting it to insertedHorizontalView outlet.

NDCustomizableScrollView doesn't make any assumptions about what view you assign/connect to insertedHorizontalView, its up to you to link any controls up to your NSWindowController or NSViewController and do something with that user interaction. For example NDCustomizableScrollView doesn't implement any magnification logic for you, other than what you get from the super class NSScrollView and its super class.

Limitation

Currently NDCustomizableScrollView only supports a single view to the left side of the horizontal NSScroller.

ndcustomizablescrollview's People

Contributors

nathanday avatar

Stargazers

 avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

sunyazhou13

ndcustomizablescrollview's Issues

Switch from left side to right side of scroller.

Could have a bool (or two value enum) to switch between the two sides or alternativly could have a second property for another view so the user could add two views to either side if they want to.

This logic should also work for the vertical scroller as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.