Instance Method


Called when there is a change in value of the preferredContentSize property of a child view controller or a presented view controller.


- (void)preferredContentSizeDidChangeForViewController:(NSViewController *)viewController;



The view controller whose preferredContentSize property value changed.


Override this method if you want to adjust layout when a child view controller or presented view controller changes its preferred content size.

See Also

Managing Child View Controllers in a Custom Container

- addChildViewController:

A convenience method for adding a child view controller at the end of the childViewControllers array.


An array of view controllers that are hierarchical children of the view controller.

- transitionFromViewController:toViewController:options:completionHandler:

Performs a transition between two sibling child view controllers of the view controller.

- insertChildViewController:atIndex:

Inserts a specified child view controller into the childViewControllers array at a specified position.

- removeChildViewControllerAtIndex:

Removes a specified child controller from the view controller.

- removeFromParentViewController

Removes the called view controller from its parent view controller.