开发者

Adding a helper application to a preference pane in Mac OS X

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 t开发者_运维问答o 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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜