gpt4 book ai didi

macos - 设计序言 Mac OS X Mas

转载 作者:行者123 更新时间:2023-12-02 05:10:03 25 4
gpt4 key购买 nike

我最近为 MAC Store 打包了我的应用程序,但被拒绝了。以下是审核团队发给我的消息。当我使用开发模式进行测试时,一切正常,但我无法想象我哪里出错了。任何想法将不胜感激。 应用程序是使用 Electron 构建的。

Design Preamble

The user interface of your app is not consistent with the macOS Human Interface Guidelines.

Specifically, we found that when the user closes the main application window there is no menu item to re-open it.

Next Steps

It would be appropriate for the app to implement a Window menu that lists the main window so it can be reopened, or provide similar functionality in another menu item. macOS Human Interface Guidelines state that "The menu bar [a]lways contains [a] Window menu".

Alternatively, if the application is a single-window app, it might be appropriate to save data and quit the app when the main window is closed.

For information on managing windows in macOS, please review the following sections in Apple Human Interface Guidelines:

The Menu Bar and Its Menus
The Window Menu
The File Menu
Clicking in the Dock
Window Behavior
Please evaluate how you can implement the appropriate changes, and resubmit your app for review.

最佳答案

问题是在通过按 x button 最小化应用程序之后,用户无法从扩展坞再次打开它。

解决此问题的一种方法是仅 terminate申请当x button被点击。

我遇到了同样的问题,并通过在 AppDelegate 中添加此功能来修复它.此解决方案适用于 Swift 4.2

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}

现在应用程序终止,当 x button被点击。

关于macos - 设计序言 Mac OS X Mas,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47686008/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com