Protocol

NSSplitViewDelegate

The NSSplitViewDelegate protocol defines the optional methods implemented by delegates of NSSplitView objects.

Symbols

Managing Subviews

func splitView(NSSplitView, resizeSubviewsWithOldSize: NSSize)

Allows the delegate to specify custom sizing behavior for the subviews of the NSSplitView sender.

func splitViewWillResizeSubviews(Notification)

Invoked by the default notification center to notify the delegate that the splitview will resize its subviews.

func splitViewDidResizeSubviews(Notification)

Invoked by the default notification center to notify the delegate that the splitview did resize its subviews.

func splitView(NSSplitView, canCollapseSubview: NSView)

Allows the delegate to determine whether the user can collapse and uncollapse subview.

func splitView(NSSplitView, shouldCollapseSubview: NSView, forDoubleClickOnDividerAt: Int)

Invoked to allow a delegate to determine if a subview should collapse in response to a double click.

func splitView(NSSplitView, shouldAdjustSizeOfSubview: NSView)

Allows the delegate to specify whether the subview should be resized.

Configuring and Drawing View Dividers

func splitView(NSSplitView, effectiveRect: NSRect, forDrawnRect: NSRect, ofDividerAt: Int)

Allows the delegate to modify the rectangle in which mouse clicks initiate divider dragging.

func splitView(NSSplitView, shouldHideDividerAt: Int)

Allows the delegate to determine whether a divider can be dragged or adjusted off the edge of the split view.

func splitView(NSSplitView, additionalEffectiveRectOfDividerAt: Int)

Allows the delegate to return an additional rectangle in which mouse clicks will initiate divider dragging.

Constraining Split Position

func splitView(NSSplitView, constrainMaxCoordinate: CGFloat, ofSubviewAt: Int)

Allows the delegate for sender to constrain the maximum coordinate limit of a divider when the user drags it.

func splitView(NSSplitView, constrainMinCoordinate: CGFloat, ofSubviewAt: Int)

Allows the delegate for sender to constrain the minimum coordinate limit of a divider when the user drags it.

func splitView(NSSplitView, constrainSplitPosition: CGFloat, ofSubviewAt: Int)

Allows the delegate for sender to constrain the divider to certain positions.

Relationships

Inherits From