Can someone confirm for me that DialogReturn is not working in Mathematica 11.3 on macOS? It is working in Windows.
The basic example in the documentation won’t work: ref/DialogReturn
res = DialogInput[Button["text", DialogReturn[123]]];
In Windows, clicking the button closes the dialog box and sets res to 123. In macOS, the dialog box stays open; I have to click close (red circle) and res is set to $Canceled
The DialogReturn example you quoted works fine, running on Mathematica version “11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)” on an iMac with Mac OS High Sierra 10.13.6. A wild guess - are the batteries in your cordless Mac mouse almost dead?
I restarted my computer, which means the kernel restarted. After that DialogReturn worked fine. So something must have happened in the kernel, which means this would be a difficult bug to report.
Thanks Gianluca, I would delete this post, but it might be worth keeping in case other come across the same issue I encountered. Restarting Mathematica seems to fix the issue.