Instance Method

splitView:resizeSubviewsWithOldSize:

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

Declaration

- (void)splitView:(NSSplitView *)splitView resizeSubviewsWithOldSize:(NSSize)oldSize;

Parameters

splitView

The split view that sent the message.

oldSize

The size of the split view before the user resized it.

Discussion

If the delegate implements this method, splitView:resizeSubviewsWithOldSize: is invoked after the split view is resized.

The subviews should be resized such that the sum of the sizes of the subviews plus the sum of the thickness of the dividers equals the size of the NSSplitView’s new frame. You can get the thickness of a divider through the dividerThickness method.

Note that if you implement this delegate method to resize subviews on your own, the NSSplitView does not perform any error checking for you. However, you can invoke adjustSubviews to perform the default sizing behavior.

See Also

Managing Subviews

- 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.