Skip to content

Add macOS alertDialog via NSAlert - #180

Merged
treeform merged 1 commit into
masterfrom
agent/macos-alert-dialog
Jul 14, 2026
Merged

Add macOS alertDialog via NSAlert#180
treeform merged 1 commit into
masterfrom
agent/macos-alert-dialog

Conversation

@treeform

Copy link
Copy Markdown
Owner

Summary

  • Expose alertDialog(title, message) on macOS using AppKit NSAlert, matching the existing Windows API.
  • Add NSAlert bindings in macdefs.nim and a small examples/alertdialog.nim smoke example.

Test plan

  • nim r examples/alertdialog.nim on macOS shows a native alert and continues after OK
  • Confirm Windows alertDialog still builds/unchanged
  • Optional: call alertDialog from an app after Steam/sound init failure on Mac

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@treeform
treeform merged commit 3ca198a into master Jul 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant