@@ -29,10 +29,6 @@ example that should give you a feel for the style, spacing, naming, and so on.
29
29
Here is an example header file, demonstrating the correct commenting and spacing
30
30
for an ` @interface ` declaration.
31
31
32
- Doxygen-style comments are encouraged for interfaces as they are parsed by Xcode
33
- to display formatted documentation. There is a wide variety of Doxygen commands;
34
- use them consistently within a project.
35
-
36
32
``` objectivec
37
33
// GOOD:
38
34
@@ -90,7 +86,7 @@ An example source file, demonstrating the correct commenting and spacing for the
90
86
#import "Shared/Util/Foo.h"
91
87
92
88
@implementation Foo {
93
- // The string used for displaying "hi".
89
+ /** The string used for displaying "hi". */
94
90
NSString *_string;
95
91
}
96
92
@@ -882,6 +878,10 @@ categories, protocol declarations, and enums.
882
878
@end
883
879
```
884
880
881
+ Doxygen-style comments are encouraged for interfaces as they are parsed by Xcode
882
+ to display formatted documentation. There is a wide variety of Doxygen commands;
883
+ use them consistently within a project.
884
+
885
885
If you have already described an interface in detail in the comments at the top
886
886
of your file, feel free to simply state, "See comment at top of file for a
887
887
complete description", but be sure to have some sort of comment.
@@ -1015,7 +1015,7 @@ Examples of strong and weak declarations:
1015
1015
IBOutlet NSButton * _ okButton; // Normal NSControl; implicitly weak on Mac only
1016
1016
1017
1017
AnObjcObject * _ doohickey; // My doohickey
1018
- MyObjcParent * __ weak _ parent; // To send messages back (owns this instance)
1018
+ __ weak MyObjcParent * _ parent; // To send messages back (owns this instance)
1019
1019
1020
1020
// non-NSObject pointers...
1021
1021
CWackyCPPClass * _ wacky; // Strong, some cross-platform object
0 commit comments