20

Does Objective C have a documentation framework similar to JavaDoc where documentation can be generated from the source code?

1
  • 1
    There isn't one specific to Objective-C, but I use Doxygen. Apple uses HeaderDoc, but pretty much nobody else does anymore. Commented Dec 16, 2009 at 2:01

5 Answers 5

15

Doxygen! You can use it for many languages, including Objective-c

Sign up to request clarification or add additional context in comments.

1 Comment

Definitely the best option. If you'd like to go even further, I've written a script that will convert Doxygen's output to look more like Apple's API docs: github.com/mattball/doxyclean
10

Good news for all! :D Finally after waiting a long time Apple has introduced a parser comments for our projects. According to the new features in XCode 5:

Project documentation from framework API reference documentation and structured comments in your own source code are displayed in the quick help panel and in code completion popover views. Doxygen and HeaderDoc structured comments are supported formats.

and from the Clang 3.2 release notes:

Clang parses the comments and can detect syntactic and semantic errors in comments. These warnings are off by default. Pass -Wdocumentation flag to enable warnings about documentation comments.

If you want to see an example of this new feature I recommend you take a look at the following article: Documentation in Xcode 5

Comments

6

Doxygen is quite popular among Obj-C developers.

Comments

3

You could have a look to HeaderDoc wich is the apple documentation framework similar to Java.

Comments

1

Appledoc has become very popular. . . version 1 was based on Doxygen, whereas version 2 was written from the ground up.

It doesn't quite have all the features of Doxygen (charts, enums, C++ classes, etc), but what it does offer is beautifully formatted docs in HTML of IDE integrated format.

Also interesting to note is the following:

  • The CocoaPods tool includes Appledoc documentation for the libraries that it installs. Quite handy.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.