Adding a comment to an obsolete method

I have several methods that I want to denounce.

I am doing this with the following:

+(void)myMethod:(NSString*)abc __deprecated; 

This works, but how do I add a message? Something like "use instead of xml instead of xody" ...

thanks

+7
source share
3 answers

As Nichols Smith mentioned in the comments. Decision:

 __attribute((deprecated("use x method"))) 
+12
source

I would like to use this:

 __deprecated_msg("use method x instead") 

but not:

 __attribute((deprecated("use method x instead"))) 

They are really the same under the hood, but at first it's a little more clear.

+5
source

I think you need to use the documentation generator: Doxygen, Headerdoc, etc.

I recommend you Appledoc . It is easy to use, very well documented and has a markdown style.

0
source

All Articles