Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onekiloparsec/kpcsplitpanes

A smart subclass of NSSplitView, that splits well and allows you to easily add new panes, and combine horizontal and vertical panes.
https://github.com/onekiloparsec/kpcsplitpanes

Last synced: 2 months ago
JSON representation

A smart subclass of NSSplitView, that splits well and allows you to easily add new panes, and combine horizontal and vertical panes.

Awesome Lists containing this project

README

        





KPCTabsControl
KPCJumpBarControl
KPCSplitPanes
KPCAppTermination
KPCSearchableOutlineView
KPCImportSheetController

-------

KPCSplitPanes
==============

[![Build Status](http://img.shields.io/travis/onekiloparsec/KPCSplitPanes.svg?style=flat)](https://travis-ci.org/onekiloparsec/KPCSplitPanes)
![Version](https://img.shields.io/cocoapods/v/KPCSplitPanes.svg?style=flat)
![License](https://img.shields.io/cocoapods/l/KPCSplitPanes.svg?style=flat)
![Platform](https://img.shields.io/cocoapods/p/KPCSplitPanes.svg?style=flat)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

A smart subclass of NSSplitView, that splits well and allows you to easily add new panes, and
combine horizontal and vertical panes.

![Demo JumpBar](http://onekilopars.ec/wp-content/uploads/2018/11/KPCSplitPanesDemo.gif)

Installation
------------

Using [Carthage](https://github.com/Carthage/Carthage): add `github "onekiloparsec/KPCSplitPanes"` to your `Cartfile` and then run `carthage update`.

Using [CocoaPods](http://cocoapods.org/): `pod 'KPCSplitPanes'`

Usage
-----

KPCSplitPanes is a lot a work in progress right now. A demo is here to show how to use it. Basically, install
a `NSSplitView` in your xib/storyboard, declare it as a `PressureSplitView`, build a dedicated delegate, and assign
it to the split view (see demo)

The choice between horizontal and vertical split can be toggled by pressing `Alt` key.

What is currently not perfect/working
* The automatic adjustment isn't working in all cases
* ~~The position of the divider isn't always right~~ (pretty good now)
* The window can be resized whatever the split view constraints
* I'm sure there is something else...

Author
------

[Cédric Foellmi](https://github.com/onekiloparsec) ([@onekiloparsec](https://twitter.com/onekiloparsec))

LICENSE & NOTES
---------------

KPCSplitPanes is licensed under the MIT license and hosted on GitHub at https://github.com/onekiloparsec/KPCSplitPanes/
Fork the project and feel free to send pull requests with your changes!