Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Documentation-generator for Objective-C? [closed]

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.

like image 767
Stephen Touset Avatar asked May 01 '09 22:05

Stephen Touset


3 Answers

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.

like image 138
Barry Wark Avatar answered Nov 03 '22 00:11

Barry Wark


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.

  • appledoc: how to write comments
  • appledoc examples of command line settings

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.

like image 43
ma11hew28 Avatar answered Nov 03 '22 01:11

ma11hew28


Doxygen is very widely used. I seem to use it as an SO answer about once a week, too.

like image 6
Charlie Martin Avatar answered Nov 03 '22 02:11

Charlie Martin