-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wrappers for starting and stopping modal windows (#129)
* Add App::run_modal_for_window. This is a wrapper around https://developer.apple.com/documentation/appkit/nsapplication/1428436-runmodalforwindow. * Add wrapper for stopModalWithCode, and conversions for ModalResponse. * Make run_modal_for_window borrow a reference, rather than take the value. The reference is needed because the caller may still need to use the window after the dialog is finished. * Add a note about using the sheets API for modal views. * Move the ModalResponse enum from the filesystem module to the appkit::app module. It is now being used outside of filesystem, and this more closely mirrors the location of this enum with AppKit. * Make run_modal_for_window have the same semantics as begin_sheet. Specifically, allow windows with delegates to be used.
- Loading branch information
Showing
4 changed files
with
96 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters