gpt4 book ai didi

objective-c - 将沙盒应用程序添加到登录项

转载 作者:搜寻专家 更新时间:2023-10-30 20:25:26 24 4
gpt4 key购买 nike

我在这里阅读了许多关于在登录时启动我的应用程序的问题。我已经关注了这个awesome tutorial建议了很多次。该教程确实有效。但是...

使用助手应用程序并使用 SMLoginItemSetEnabled 注册它的一个副作用是我的应用程序不会显示在系统偏好设置中用户的登录项中。

App Store 中有多个应用程序(例如 PopClip 和 Dash)可以执行我正在尝试执行的操作。我就是想不通怎么...

更新:我从 Dash 开发者那里了解到 Dash 实际上没有被沙盒化。他还认为 PopClip 也不是。这可以解释事情... https://alpha.app.net/kapeli/post/3975968

更新 #2:我刚从 PopClip 开发人员那里得到确认,它确实也没有被沙盒化。 https://twitter.com/pilotmoon/status/313746294361427968

通过最近的 2 次更新,我想答案已经很明确了。到今天为止,沙盒应用程序无法实现这一点。

最佳答案

希望还不算太晚。

在 Apple 的“Daemons and Services Programming Guide”中:

Adding Login Items

There are two ways to add a login item: using the Service Management framework, and using a shared file list.

Login items installed using the Service Management framework are not visible in System Preferences and can only be removed by the application that installed them.

Login items installed using a shared file list are visible in System Preferences; users have direct control over them. If you use this API, your login item can be disabled by the user, so any other application that communicates with it it should have reasonable fallback behavior in case the login item is disabled.

关于objective-c - 将沙盒应用程序添加到登录项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15484394/

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