views:

20

answers:

1

Hi,

I'm using Doxygen to document some Objective-C code. I have some constants declared outside the class definition. I want these to show up in the class docs. How can I make doxygen include them? (Using \file just shows them in a separate documentation page).

#import blah blah

/**
 * This is my constant
 */
extern NSString*constant someConstant; 

/**
 * More documentation
 */
@interface MyClass : NSObject <NSCoding> {

 //etc
}
A: 

Try to use the \memberof doxygen command. See.

#import blah blah

/**
 * \memberof MyClass
 * This is my constant
 */
extern NSString*constant someConstant; 

/**
 * More documentation
 */
@interface MyClass : NSObject <NSCoding> {

 //etc
}
Dennis Miller