Xcode 4 为您自己的文件提供内置帮助

发布于 2024-11-06 16:31:57 字数 158 浏览 3 评论 0原文

Xcode 4 有一个非常好的内置帮助/文档,您可以通过按住 Alt 键单击代码中的标识符或打开右侧边栏中的帮助面板来访问。但是,这只适用于 Apple 提供的类和方法。有没有办法在您自己的代码中编写某种文档注释(例如,Java 中的 Javadoc 注释)以使 Xcode 在这些文档面板中显示它们?

Xcode 4 has a very nice built-in help/documentation that you can access e.g. by alt-clicking an identifier in the code, or by opening the help panel in the right sidebar. However, this only works for classes and methods provided by Apple. Is there a way to write some kind of documentation comments (e.g. like the Javadoc comments in Java) in your own code to make Xcode display them in those documentation panels?

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

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

发布评论

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

评论(2

柠檬色的秋千 2024-11-13 16:31:57

http://developer.apple.com/ library/mac/#documentation/DeveloperTools/Conceptual/HeaderDoc/intro/intro.html

它由 Apple 维护,因此应该得到很好的支持。我从来没有实际使用过它,以后可能会尝试一下。

http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/HeaderDoc/intro/intro.html

It's maintained by Apple so it should be well supported. I never actually used it, may try it later.

檐上三寸雪 2024-11-13 16:31:57

好吧,看起来确实没有好的工具......有一些不同的工具,但它们不完美且难以配置。我无法让 Doxygen 或 Appledoc 工作,并且 Avizzv92 提到的工具在其他地方被称为“一堆便便”,所以我不想尝试它......:)

我发现的信息:

< a href="https://stackoverflow.com/questions/174315/how-do-you-document-your-source-code-in-xcode">如何在 Xcode 中记录源代码?

<一个href="http://wangling.me/2010/07/documentation-set- Generation-tool-in-xcode-is-wanted/" rel="nofollow noreferrer">http://wangling.me/2010/07 /documentation-set- Generation-tool-in-xcode-is-wanted/

http://developer.apple.com/tools/creatingdocsetswithdoxygen.html

http://www.gentlebytes.com/home/appledocapp/

http://lists.apple.com/archives/xcode-users/ 2011/Apr/msg00238.html

Ok, it looks like there's no good tool really... there are a few different ones, but they're imperfect and difficult to configure. I couldn't get Doxygen or Appledoc to work, and the tool mentioned by Avizzv92 is referred to as "a pile of poo" elsewhere, so I'd rather not try it... :)

Info that I've found:

How do you document your source code in Xcode?

http://wangling.me/2010/07/documentation-set-generation-tool-in-xcode-is-wanted/

http://developer.apple.com/tools/creatingdocsetswithdoxygen.html

http://www.gentlebytes.com/home/appledocapp/

http://lists.apple.com/archives/xcode-users/2011/Apr/msg00238.html

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