Instance Method

splitView(_:shouldHideDividerAt:)

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

Declaration

optional func splitView(_ splitView: NSSplitView, shouldHideDividerAt dividerIndex: Int) -> Bool

Parameters

splitView

The split view that sent the message.

dividerIndex

The zero-based index of the divider.

Return Value

true if the divider should allow dragging off the edge of the split view, resulting in it not being visible.

Discussion

If a split view has no delegate, or if its delegate does not respond to this message, the split view behaves as if it has a delegate that returns false when sent this message.

See Also

Configuring and Drawing View Dividers

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

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

func splitView(NSSplitView, additionalEffectiveRectOfDividerAt: Int) -> NSRect

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