0

我有一个基于单个窗口的可可应用程序。它没有任何文件等。本质上它是一个实用程序。我需要显示一个模式对话框,基本上是一个连接框,其中有一个 ip、端口、连接控件。

我在某处读到不建议在基于可可的应用程序中使用模态对话框。那是对的吗 ?那么我应该使用基于文档的对话框吗?我对此感到很困惑,对此主题的任何指导将不胜感激。

4

1 回答 1

1

Modal dialogs can get lost in presentation (showing up on the wrong desktop/space, full screen issues, etc). Sheets tie into the window, so they always display properly.

Full guidance is available in the Human Interface Guidelines https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/Windows/Windows.html#//apple_ref/doc/uid/20000961-TP9

于 2013-02-08T18:41:08.453 回答