Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taktik/tksplithandle
A NSSplitView replacement for autolayout
https://github.com/taktik/tksplithandle
Last synced: 8 days ago
JSON representation
A NSSplitView replacement for autolayout
- Host: GitHub
- URL: https://github.com/taktik/tksplithandle
- Owner: taktik
- License: lgpl-2.1
- Created: 2015-06-22T13:01:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-22T13:29:53.000Z (over 9 years ago)
- Last Synced: 2024-02-03T00:20:38.906Z (10 months ago)
- Language: Objective-C
- Size: 156 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TKSplitHandle
A NSSplitView replacement for autolayoutTKSplitHandle is a subclass of NSImageView.
In order to use it, you instantiate it in a nib, add constraints on the two views that will be splitted by the split handle in this way :
* Vertical mode:
* ```H:|[TopView]|```
* ```H:|[BottomView]|```
* ```V:|[TopView]-0-[SplitHandle]-0-[BottomView]|```
* And the main constraint that will determine the position of the handle : ```V:[SplitHandle]-200-|``` (for an inital size od 200)* Horizontal mode:
* ```V:|[LeftView]|```
* ```V:|[RightView]|```
* ```H:|[LeftView]-0-[SplitHandle]-0-[RightView]|```
* And the main constraint that will determine the position of the handle : ```H:|-200-[SplitHandle]``` (for an inital size of 200)You must also connect 3 outlets from the split handle towards :
* the bottom or left view
* the top or right view
* the main constraint (see above)
Double/triple clicks collapse and restore the panes. The pane magnetically collapses when dragged below the minimum size of a pane.