Instance Method

setPosition:ofDividerAtIndex:

Sets the position of the divider at the specified index.

Declaration

- (void)setPosition:(CGFloat)position ofDividerAtIndex:(NSInteger)dividerIndex;

Parameters

position

The position of the divider

dividerIndex

The index of the divider.

Discussion

The default implementation of this method behaves as if the user were attempting to drag the divider to the proposed position, so the constraints imposed by the delegate are applied and one of the views adjacent to the divider may be collapsed.

This method is not invoked by NSSplitView itself.

See Also

Constraining Split Position

- minPossiblePositionOfDividerAtIndex:

Returns the minimum possible position of the divider at the specified index.

- maxPossiblePositionOfDividerAtIndex:

Returns the maximum possible position of the divider at the specified index.