Instance Method

presentViewControllerAsSheet:

Presents another view controller as a sheet.

Declaration

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

Parameters

viewController

The other view controller to present as a sheet.

Discussion

This method calls the presentViewController:animator: method on self (the presenting view controller), and passes a sheet animator to that method.

The presented view controller is the delegate and the content view controller of its sheet.

To dismiss the sheet, call the dismissViewController: method on self (the presenting view controller).

See Also

Presenting Another View Controller’s Content

- presentViewController:animator:

Presents another view controller using a specified, custom animator for presentation and dismissal.

- dismissViewController:

Dismisses a presented view controller, using the same animator that presented it.

- presentViewControllerAsModalWindow:

Presents another view controller as a modal window, also known as an alert.