Instance Property

presentingViewController

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

Declaration

@property(readonly, assign) NSViewController *presentingViewController;

Discussion

The presenting view controller is the one that is ultimately responsible for presenting the view controller whose presentingViewController property you are accessing.

See Also

Getting Related View Controllers

parentViewController

The immediate ancestor view controller of the view controller.

presentedViewControllers

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