如何制作隐形/隐藏的可可应用程序

发布于 2024-10-08 02:18:33 字数 419 浏览 0 评论 0原文

我想开发一个类似 http://orbicule.com/undercover/
的应用程序 http://hiddenapp.com/

我知道如何在 Windows 上做到这一点,但我完全不知道,是什么样的
我需要 mac os x、cocoa/xcode 的方法。

构建应用程序/后台服务时有什么我应该注意的事情
mac os x 没有 GUI 吗?

该服务将使用地理位置和信息等常用数据将数据发布到网页。知识产权
有关机器的信息,因此它也应该能够访问互联网。

请引导我走上正确的道路。

I want to develop a application like http://orbicule.com/undercover/ or
http://hiddenapp.com/.

I know how I could do that for windows but I have totally no clue, what kind
of approach I would need for mac os x, cocoa/xcode.

Is there anything I should be aware of when building applicatons / background services
with no GUI for mac os x?

The service will post data to the webpage with the usual data like geo location & IP
information about the machine so it should be able to access the internet too.

Please lead me to the right path.

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

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

发布评论

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

评论(2

无边思念无边月 2024-10-15 02:18:33

这相当简单。

转至:

信息属性列表键参考

http: //developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Introduction/Introduction.html

在启动服务密钥中,您将看到一个名为“LSBackgroundOnly”的项目,只需在您的信息中定义它即可.plist 并将其设置为 true。

<key>LSBackgroundOnly</key>
<true/>

从文档中:

LSBackgroundOnly(布尔值 - Mac OS X)
指定该应用程序是否
仅在后台运行。如果这个
密钥存在并设置为“1”,启动
服务在以下位置运行应用程序
仅背景。你可以使用这个键
创建不露脸的背景
应用程序。你也应该使用这个
key 如果您的应用程序使用
连接的更高级别框架
到窗口服务器,但不是
旨在对用户可见。
后台应用程序必须是
编译为 Mach-O 可执行文件。这
选项不适用于 CFM
应用程序。

您的应用程序将是后台应用程序。

It's fairly straightforward.

Go to:

Information Property List Key Reference

http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Introduction/Introduction.html

in the Launch Services Keys, you will see one called "LSBackgroundOnly" simply define this in your Info.plist and set it to true.

<key>LSBackgroundOnly</key>
<true/>

From the documentation:

LSBackgroundOnly (Boolean - Mac OS X)
specifies whether this application
runs only in the background. If this
key exists and is set to “1”, Launch
Services runs the application in the
background only. You can use this key
to create faceless background
applications. You should also use this
key if your application uses
higher-level frameworks that connect
to the window server, but are not
intended to be visible to users.
Background applications must be
compiled as Mach-O executables. This
option is not available for CFM
applications.

Your application will be a background application.

戒ㄋ 2024-10-15 02:18:33

阅读系统启动编程主题 。创建一个命令行工具项目,而不是 Cocoa 应用程序或基于 Cocoa 文档的应用程序。要提供一个 GUI 来与其交互,您需要使用一个单独的应用程序(理想情况下您不必与“隐藏”应用程序一起安装,因为您似乎不希望它很容易被发现)。

除了 AppKit (UI) 之外,其余的基本 Cocoa 框架仍然可以通过命令行使用。这意味着您将像其他方式一样编写应用程序的主要逻辑(非 GUI 部分)。

Give System Startup Programming Topics a read. Create a command line tool project, not a Cocoa Application nor a Cocoa Document-Based application. To provide a GUI to interface with it you'll want to use a separate application (ideally one you don't have to install with the "hidden" app, since you seem not to want it to be easily discoverable).

With the exception of AppKit (UI) stuff, the rest of the basic Cocoa frameworks is still available to you via the command line. This means you'd write the main logic of your app (the non-GUI parts) the same as you would otherwise.

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