Platforms to show: All Mac Windows Linux Cross-Platform

NSSplitViewMBS class   New in 23.4

Super class: NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacControls Plugin 23.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: A view that arranges two or more views in a linear stack running horizontally or vertically.
Sub Opening()
// add sub views
Dim view As NSSplitViewMBS = Me.View

view.Vertical = True
view.addArrangedSubview TextArea1.NSViewMBS
view.addArrangedSubview TextArea2.NSViewMBS

End Sub
By default, dividers have a horizontal orientation so that the split view arranges its panes vertically from top to bottom.

Divider indices are zero-based. If the Vertical property is false, which is the default value, the top divider has an index of 0. If isVertical is true, the leading divider has an index of 0.
Subclass of the NSViewMBS class.

Layout Priorities

Constant Value Description
NSLayoutPriorityDefaultHigh 750 Priority level with which a button resists compressing its content.
NSLayoutPriorityDefaultLow 250 Priority level at which a button hugs its contents horizontally.
NSLayoutPriorityDragThatCannotResizeWindow 490 Priority level at which a split view divider, say, is dragged.
NSLayoutPriorityDragThatCanResizeWindow 510 Appropriate priority level for a drag that may end up resizing the window.
NSLayoutPriorityFittingSizeCompression 50 When you send a fittingSize message to a view, the smallest size that is large enough for the view's contents is computed.
NSLayoutPriorityRequired 1000 A required constraint.
NSLayoutPriorityWindowSizeStayPut 500 Priority level for the window’s current size.

Divider Styles

Constant Value Description
NSSplitViewDividerStylePaneSplitter 3 A thick style divider with a 3D appearance displays between subviews.
NSSplitViewDividerStyleThick 1 A thick style divider displays between subviews.
NSSplitViewDividerStyleThin 2 A thin style divider displays between subviews.

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some properties using for this class:

Some examples using this class:

Blog Entries

The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacControls Plugin.

NSSpellCheckerMBS   -   NSStatusBarButtonMBS

💬 Ask a question or report a problem
The biggest plugin in space...