Skip to content

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

License

Notifications You must be signed in to change notification settings

onekiloparsec/KPCSplitPanes

Repository files navigation

KPCTabsControlKPCJumpBarControlKPCSplitPanesKPCAppTerminationKPCSearchableOutlineViewKPCImportSheetController


KPCSplitPanes

Build Status Version License Platform Carthage compatible

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

Demo JumpBar

Installation

Using Carthage: add github "onekiloparsec/KPCSplitPanes" to your Cartfile and then run carthage update.

Using CocoaPods: 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 (@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!

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published