Starts a document modal session.
- macOS 10.0–10.10Deprecated
The window object representing the sheet you want to display.
The window object to which you want to attach the sheet.
The delegate object that defines your
nil, the method in
didis not called.
An optional method to call when the sheet’s modal session has ended. This method must be defined on the object in the
modalparameter and have the following signature:
A pointer to the context info you want passed to the
didmethod when the sheet’s modal session ends.
This method displays the sheet modally on the specified window and returns control to the caller. Most events targeted at
doc are prohibited while the sheet is displayed but the app’s main run loop runs normally otherwise.