Instance Property

parentViewController

The immediate ancestor view controller of the view controller.

Declaration

@property(readonly) NSViewController *parentViewController;

Discussion

The value of this property is nil if the view controller has no parent view controller, such as if the view controller is a window’s content view controller.

See Also

Getting Related View Controllers

presentedViewControllers

The view controllers, if any, that are currently presented by the view controller.

presentingViewController

The view controller that presented the view controller or that presented its farthest ancestor view controller.