Open dstwobit opened 12 years ago
What I mean here is possibly using NSInformationalAlertStyle
to denote lesser priority or NSCriticalAlertStyle
to denote greater instead of the default of NSWarningAlertStyle
. While informational & warning (currently) do not have a visual differentiation, critical does, and would be applicable for stuff like losing unsaved changes.
It's the difference between this:
and this:
The holdup is that except for the app-quit unsaved changes prompt, we don't know going into the UI routine what the content of the alert()
or confirm()
is, since the content is not Cocoa-generated but instead JavaScript-generated and handled generically by our browser wrapper. This would require some sort of context passing, as well as reversion after prompting to the default.
Minor issue, but nice to have.
To be more explicit: named actions are better than [ Cancel / OK ]
, particularly when data loss is a possibility. I recall some work on this recently, but it may have been in our online editor, not TileMill. I will take a look at this.
This appears to only be happening in one place, the above-referenced unsaved changes dialog.
Otherwise, we've replaced uses of JavaScript alert()
and confirm()
with custom modals.
Opened robotically by @incanus. May need clarification.