分发包含 Mac App Store 上的后台应用程序的首选项窗格
我的应用程序是一个首选项窗格,其中包含一个后台应用程序。 我想知道是否有人已经找到了通过 Mac App Store 分发“仅首选窗格”应用程序的最佳实践。商店中已有任何偏好窗格应用程序吗?
My app is a pref pane which includes a background application in its bundle.
I wonder if anybody has already figured out the best practice for distributing a "pref pane only" app via the Mac App Store. Are there already any pref pane apps in the store?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Apple 声明包含首选项窗格的应用程序不是“独立的”,它们在准则不允许的共享位置安装代码或资源,因此违反了 https://developer.apple.com/appstore/mac/resources/approval/guidelines.html
Apple states apps containing preference panes are not "self-contained", they install code or resources in a shared location that is not allowed by the guidelines hence in violation of both 2.15 and 2.30 in https://developer.apple.com/appstore/mac/resources/approval/guidelines.html
首先我要说的是,我没有提交任何包含系统首选项窗格的应用程序(事实上,我没有向 Mac App Store 提交任何应用程序,仅向 iOS App Store 提交)。这个答案是基于我对指南的阅读以及对 OS X 工作原理的理解。
我已阅读 Mac App Store 指南,但没有发现它们排除了系统首选项窗格。 2.15 说:
Finder 将
.prefpane
文件视为任何其他文件 - Finder 启动处理此类文件的应用程序 (即 System Preferences.app)并打开该应用程序并将该文件作为参数传递。当.prefpane
文件打开时,System Preferences.app 会询问用户是否要安装它(在系统库或用户库中)。 System Preference.app 正在“安装”.prefpane
。如果应用程序在其捆绑包中包含
.prefPane
以及允许用户在 Finder 中打开文件的机制,那么我认为不会违反上述准则。我很难相信苹果公司已经提供了更好的解决方案,但他们还希望开发人员用不必要的图标来扰乱用户的菜单栏。
我想知道是否有人尝试提交一个提供安装系统首选项窗格选项的应用程序。我还想知道我是否错过了 Apple 讨论此问题的一些文档(除了上面引用的指南之外)。
Let me start by saying that I have not submitted any apps that contain system preference panes (in fact I have not submit any apps to the Mac App Store, only the iOS App Store). This answers is based on my reading of the guidelines and my understanding of how OS X works.
I've read the Mac App Store guidelines and I don't see that they preclude system preference panes. 2.15 says:
Finder treats a
.prefpane
file like any other file - Finder launches the app which handles files of this type (i.e. System Preferences.app) and opens that app and passes the file as an argument. When a.prefpane
file is opened System Preferences.app asks the user were to install it (in the System Library or the Users Library). It is System Preference.app that is 'installing' the.prefpane
.If an app were to include a
.prefPane
in its bundle and a mechanism for allowing the user to open file in Finder then I do not think the above guideline would have been contravened.I find it hard to believe that Apple wants developers to cluttered up users menu bars with unnecessary icons when they have already provided a much better solution.
I'd like to know if anyone has tried to submit an app that provides an option to install a system preference pane. I'd also like to know if I've missed some documentation from Apple which discuss this (besides the guidelines quoted above).