The NSSplit protocol defines the optional methods implemented by delegates of NSSplit objects.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
protocol NSSplitViewDelegate
The NSSplit protocol defines the optional methods implemented by delegates of NSSplit objects.
SDK
Framework
protocol NSSplitViewDelegate
func split View(NSSplit View, resize Subviews With Old Size: NSSize)Allows the delegate to specify custom sizing behavior for the subviews of the NSSplitView sender.
func split View Will Resize Subviews(Notification)Invoked by the default notification center to notify the delegate that the splitview will resize its subviews.
func split View Did Resize Subviews(Notification)Invoked by the default notification center to notify the delegate that the splitview did resize its subviews.
func split View(NSSplit View, can Collapse Subview: NSView) -> BoolAllows the delegate to determine whether the user can collapse and uncollapse subview.
func split View(NSSplit View, should Collapse Subview: NSView, for Double Click On Divider At: Int) -> BoolInvoked to allow a delegate to determine if a subview should collapse in response to a double click.
func split View(NSSplit View, should Adjust Size Of Subview: NSView) -> BoolAllows the delegate to specify whether the subview should be resized.
func split View(NSSplit View, effective Rect: NSRect, for Drawn Rect: NSRect, of Divider At: Int) -> NSRectAllows the delegate to modify the rectangle in which mouse clicks initiate divider dragging.
func split View(NSSplit View, should Hide Divider At: Int) -> BoolAllows the delegate to determine whether a divider can be dragged or adjusted off the edge of the split view.
func split View(NSSplit View, additional Effective Rect Of Divider At: Int) -> NSRectAllows the delegate to return an additional rectangle in which mouse clicks will initiate divider dragging.
func split View(NSSplit View, constrain Max Coordinate: CGFloat, of Subview At: Int) -> CGFloatAllows the delegate for sender to constrain the maximum coordinate limit of a divider when the user drags it.
func split View(NSSplit View, constrain Min Coordinate: CGFloat, of Subview At: Int) -> CGFloatAllows the delegate for sender to constrain the minimum coordinate limit of a divider when the user drags it.
func split View(NSSplit View, constrain Split Position: CGFloat, of Subview At: Int) -> CGFloatAllows the delegate for sender to constrain the divider to certain positions.
var delegate: NSSplit View Delegate?The split view’s delegate.