Search code examples
objective-cdocumentationdoxygenobjective-c-category

doxygen link to objective-c method in category


I found it is hard to link method in category with doxygen.

For example with the following code:

@interface A
-(void)method;
@end

@interface A(Category)
-(void)methodInCategory
@end

I found that doxygen works like so:

@ref A(Category)   => Success to link: A(Category)
@link A::method    => Success to link: A -method

but with the following code:

@link A(Category)::methodInCategory  => Fail to link

I always got the error:

warning: unable to resolve link to `A(Category)::methodInCategory' for \link command

I am using doxygen 1.8.1.2

How can I make a link to method in category, or is it a bug of doxygen?


Solution

  • I know this is a really old post, but just in case someone was having this problem like I was, this actually seems to work now. I am using doxygen 1.8.9.1 using:

    @ref A(Category)::methodInCategory
    

    worked for me, but the link produced was a bit odd as it left out the class name and produced: '::methodInCategory'