Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to configure Doxygen to document Objective-C categories properly
    primarykey
    data
    text
    <p>Doxygen appears to have idiosyncratic handling of Objective-C categories and I would like to know if others have been able to work around it successfully. I would like doxygen to document all categories on a class as separate entities, irrespective of whether the base class is documented or not.</p> <p>If I add doxygen markup to a category on an <em>undocumented</em> base class - say NSString, then doxygen lists the category and its methods in the class list as a separate entity. </p> <pre><code>/** * @category NSString(Foo) * @brief A sample category on NSString */ @interface NSString(Foo) @end </code></pre> <p>Results in a documented entity NSString(Foo) in the class list.</p> <p>But, the following example <em>does not</em>:</p> <pre><code>/** * @category CCFMyCustomClass(Foo) * @brief A category on a documented base class */ @interface CCFMyCustomClass(Foo) @end </code></pre> <p>Instead, in the latter case, all of the methods on CCFMyCustomClass(Foo) are included in the documentation for CCFMyCustomClass - the base class.</p> <p>The following, though often cited, don't seem to help with this problem:</p> <ul> <li><p><a href="https://stackoverflow.com/questions/2042595/doxygen-and-objective-c-categories">Doxygen and Objective-C categories</a></p></li> <li><p><a href="http://www.duckrowing.com/2010/03/18/documenting-objective-c-with-doxygen-part-i/" rel="nofollow noreferrer">http://www.duckrowing.com/2010/03/18/documenting-objective-c-with-doxygen-part-i/</a></p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload