Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 769 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 769 Bytes

nsh_message_dialog_example

A Native Shell Rust window opens nativeapi system message dialogs. Show information works on macOS and Windows. Show confirmation uses the extended dialog API on Windows and displays its result when dismissed; on macOS it reports that confirmation buttons are unavailable.

cargo run --manifest-path examples/nsh_message_dialog_example/Cargo.toml

Run from the repository root on macOS or Windows. See the shared setup and threading notes. MessageDialog::open is modal: the platform thread waits for dismissal, while the NSH engine awaits the response asynchronously. The dialog is created and destroyed on the platform thread. Repeated requests are ignored while a dialog is open.