Is there a generally-accepted documentation generator for Objective-C (similar to RDoc for Ruby)? I've seen Doxygen and ObjcDoc, and am wondering which is most widely used.
Doxygen is probably the most widely used option. Because it's not just for ObjC (doxygen supports many other languages), the development is lively and the community quite strong. HeaderDoc (now an open source project), by comparison appears to have largely stagnated. HeaderDoc only produces HTML output, while doxygen also produces PDF, LaTeX and many other output forms besides HTML. Even Apple seems to recommend doxygen, with this guide to automatically producing documentation sets, compatible with Xcode's help viewer, from within your Xcode build process.
It's worth noting that doxygen can read HeaderDoc-style comments, so you can write your documentation in HeaderDoc style and decide later whether to produce the final output using doxygen or HeaderDoc.
Check out appledoc. It's based on Doxygen. You can see that it eats its own dog food in that it generates the appledoc reference documentation for the appledoc source code. Compare, for example, GBComment.h
to GBComment
Class Reference.
Also, take a look at Xcode's Documentation Set Guide for comprehensive instructions on how to create documentation that works with Xcode. These are the instructions that appledoc automates.
Doxygen is very widely used. I seem to use it as an SO answer about once a week, too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With