Instance Method

splitView:shouldAdjustSizeOfSubview:

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

Declaration

- (BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)view;

Parameters

splitView

The split view that sent the message.

subview

The subview to resize.

Return Value

YES if adjustSubviews can change the size of the subview, otherwise NO. By returning NO, you lock the size of the split view subview while the split view is resized.

Discussion

Regardless of the value returned by this method, adjustSubviews may change the origin of the subview. Otherwise non-resizable subviews may also be resized in order to prevent an invalid subview layout.

If a split view has no delegate, or if its delegate does not respond to this message, the split view behaves as if this method returns YES.

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:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:

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

Deprecated