Instance Method

splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:

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

Declaration

- (BOOL)splitView:(NSSplitView *)splitView shouldCollapseSubview:(NSView *)subview forDoubleClickOnDividerAtIndex:(NSInteger)dividerIndex;

Parameters

splitView

The split view that sent the message.

subview

The subview to collapse.

dividerIndex

The index of the divider.

Return Value

YES if the subview should collapse, NO otherwise.

Discussion

If implemented, the delegate will receive this message once for the subview before a divider when the user double-clicks on that divider, and again for the subview after the divider, but only if the delegate returned YES when sent splitView:canCollapseSubview: for the subview in question. When the delegate indicates that both subviews should be collapsed NSSplitView's behavior is undefined.

See Also

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:shouldAdjustSizeOfSubview:

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