Protocol

NSSplitViewDelegate

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

Declaration

@protocol NSSplitViewDelegate

Topics

Managing Subviews

- splitView:resizeSubviewsWithOldSize:

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

- splitViewWillResizeSubviews:

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

- splitViewDidResizeSubviews:

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

- splitView:canCollapseSubview:

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

- splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:

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

Deprecated
- splitView:shouldAdjustSizeOfSubview:

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

Configuring and Drawing View Dividers

- splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:

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

- splitView:shouldHideDividerAtIndex:

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

- splitView:additionalEffectiveRectOfDividerAtIndex:

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

Constraining Split Position

- splitView:constrainMaxCoordinate:ofSubviewAt:

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

- splitView:constrainMinCoordinate:ofSubviewAt:

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

- splitView:constrainSplitPosition:ofSubviewAt:

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

Relationships

Inherits From

Conforming Types

See Also

Customizing the Split View Behavior

delegate

The split view’s delegate.