Coding Guidelines
Objective-C Code
The major reference that defines most of the coding guidelines for Objective-C code in the project is the Cocoa/Objective-C Coding Guidelines document from the Apple Developer Connection. In addition to the guidelines set by that document, we define some more that must be put into practice when writing new code for the project.
Naming Conventions
- Every instance variable shall be prefixed by "m_". This helps us to better distinguish them from local variables defined inside methods.
- Every class variable (static variables having their visibility limited to the ".m" file that defines the class' methods) shall be prefixed by "s_".
- Every private method shall be prefixed by "p_".