带有沙盒应用程序的 SIMBL 插件

发布于 2024-12-13 18:01:54 字数 284 浏览 5 评论 0原文

我已经在 Lion 中为 TextEdit 创建了一个 SIMBL 插件,但是我无法使用 userInfo 对象发送 NSDistributedNotification,因为沙箱阻止了通知的发布。

我收到以下消息: TextEdit:* 尝试发布被沙箱阻止的分布式通知。

我认为这与以下权利有关; com.apple.security.temporary-exception.apple-events

如何在我的插件中实现此功能?或者我是否需要更改 TextEdit 的权限才能发送通知?

I have created a SIMBL plugin for TextEdit in Lion however I am unable to send an NSDistributedNotification with a userInfo object as the Sandbox stops the Notification from being posted.

I get the following message:
TextEdit: * attempt to post distributed notification thwarted by sandboxing.

I believe it has something to do with the following entitlement;
com.apple.security.temporary-exception.apple-events

How do I implement this in my plugin? Or do I need to alter the entitlements for TextEdit in order to send notifications?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云巢 2024-12-20 18:01:54

分布式通知不再允许您在沙箱下指定 userInfo 有效负载。苹果事件权利无法帮助您处理分布式通知,因为它们是完全不同的东西。此外,权利位于应用程序上,修改它们将使应用程序的代码签名无效,这也会阻止应用程序运行,因此权利不是正确的选择。

distributed notifications no longer allow you to specify a userInfo payload under sandboxing. the apple events entitlement doesn't help you with distributed notifications as they are completely different things. Additionally the entitlements are on the application and modifying them will invalidate the app's code signature which will also prevent the application from running, so entitlements aren't the way to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文