Adding A New Code File To Project

From rootshell wiki

(Difference between revisions)
Jump to: navigation, search
Elrusho (Talk | contribs)
(Guidelines for adding a code file to the project.)
Newer edit →

Revision as of 12:43, 3 May 2010

  • The name of the file should reflect the name of the main class of the file.


  • The project directory structure is as follows:Code file.png

Code files must be in the "Classes" directory.
If the code belongs in a specific group, then it should be placed in a folder.
If the code belongs to a specific version of the application then it should be placed in a folder with the name of the version.


  • The project group structure (the groups in Xcode) must be the same as the project's directory structure.


  • New files and folders must be added to SVN


  • New code files should contain a general description of the classes in it at the top of the .h file. The description should contain:

One or two sentences describing the tasks that the classes perform,
The name of the project that the file belongs to,
The date it was created and by whom,
The name and email of the authors and maintainers,
A list of the resources that the classes will use (such as image files and nib files),
Date of any update or changes to the classes and one sentence describing what was changed.

Here is a sample: Sample comment.png.

Personal tools