[Doxygen-users] Overridden selectors
Brought to you by:
dimitri
From: Alessandro A. <ant...@gm...> - 2015-02-07 14:03:12
|
Hi, all. I'm wonder how to do this kind of documentation correctly. The language is Objective-C and this is my case. I have an interface that implements a standard protocol. The declaration is like this: @interface MyInterface : NSObject < NSCopying > { } @end 'NSCopying' has the 'copyWithZone:' selector and it is implemented in 'MyInterface' implementation: @implementation MyInterface - (id)copyWithZone:(NSZone *)zone { // ... code removed for brevity return something; } @end In Objective-C overridden selectors are not declared in the interface declaration. So, what is the correct way to document the implementation of 'copyWithZone:'? Since it is not declared in the 'interface' declaration it is assumed by Doxygen to be a local selector. This is right. I don't want local operations to show up in the documentation. But I do want some overridden selectors to appear in the documentation. How could I accomplish that? |