appledoc icon indicating copy to clipboard operation
appledoc copied to clipboard

Need a way to document externalized string constants

Open umjames opened this issue 11 years ago • 7 comments

If you're trying to document externalized string constants with appledoc, there doesn't seem to be any way to make it appear in the generated documentation. Apple's documentation does contain such constants, like those at the bottom of the page for NSError under the Constants section (https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/Reference/Reference.html#//apple_ref/doc/uid/20001704-CJBIAHGF).

umjames avatar Oct 04 '14 20:10 umjames

Would love such a feature. Same goes for public-facing enums and structs.

emaloney avatar Oct 06 '14 16:10 emaloney

@emaloney I can get enums documented using:

/** Error codes used by CLIOptionParser */
typedef NS_ENUM(NSUInteger, CLIOptionParserErrorCode) {
    /** An option that required an argument was not supplied with that argument */
    kCLIMissingRequiredArgument = 1,
    /** An option that wasn't specified was encountered */
    kCLIUnknownOption,
    /** There are multiple errors which can be found the error's userInfo dictionary under the key CLIMultipleErrorsKey */
    kCLIMultipleErrors
};

Note: this won't work unless you use the NS_ENUM macro. Regular enums are not noticed by appledoc.

I don't know about structs though.

umjames avatar Oct 06 '14 17:10 umjames

Cool, I wasn't aware of that. Thanks!

emaloney avatar Oct 06 '14 17:10 emaloney

Are externalized string constants still not supported?

AnthonyMDev avatar May 01 '15 17:05 AnthonyMDev

+1

inetfuture avatar Jul 28 '15 05:07 inetfuture

+1

niveuseverto avatar Dec 18 '17 10:12 niveuseverto

+1

jblaker avatar Mar 13 '19 20:03 jblaker