将帮助程序应用程序添加到 Mac OS X 中的首选项窗格

发布于 2024-10-01 15:18:19 字数 198 浏览 1 评论 0原文

我正在 10.6 Snow Leopard 和 Xcode 3.2.3 中开发首选项窗格。

正如当今流行的那样,我想向此首选项窗格添加一个帮助应用程序。应用程序和首选项窗格都应该能够实时通信(通知中心、默认数据库等)。

我该怎么做呢?我不确定是否要创建两个不同的项目,或者使用首选项窗格创建一个项目并添加一个应用程序作为目标。

谢谢!

I'm developing a preference pane in 10.6 Snow Leopard and Xcode 3.2.3.

As is popular nowadays, I want to add a helper application to this preference pane. Both the application and preference pane should be able to communicate in real time (notification centre, defaults database, etc).

How would I go about doing this? I'm not sure whether to make two different projects, or make one with the pref pane and add an application as a target.

Thanks!

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

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

发布评论

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

评论(1

老娘不死你永远是小三 2024-10-08 15:18:19

我会选择第二条路线;将另一个目标添加到您现有的项目中。这样,您可以使首选项窗格依赖于帮助程序应用程序,并将帮助程序应用程序复制到窗格的资源文件夹中,作为窗格“复制资源”阶段的一部分。

I'd go with the second route; add another target to your existing project. That way you can make the preference pane depend on the helper application, and copy the helper app into the pane's Resources folder as part of the pane's "Copy Resources" phase.

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