Allows the delegate to specify whether the subview should be resized.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
optional func splitView(_ splitView: NSSplit View, shouldAdjustSizeOfSubview view: NSView) -> Bool
Parameters
splitView
The split view that sent the message.
subview
The subview to resize.
Return Value
true
if adjustSubviews can change the size of the subview, otherwise false
. By returning false
, you lock the size of the split view subview
while the split view is resized.
Discussion
Regardless of the value returned by this method, adjust
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 true
.