Adding a New File from the File Template Library

    Steps
  1. Choose File Template Library from the Utilities menu under the View menu.

  2. Select the file template in the library.

  3. Drag the template to a project or group in the project navigator.

  4. Name the file, and click Save.



image: ../art/adding_a_new_file_from_library.png

Add a new file to a project or workspace using the File Template library. This library offers a convenient way to create files in your project or workspace.

The video illustrates using a template from the File Template library to add an Objective-C class to a project. Note that the library button is labeled with a file icon.

Using the provided file templates ensures that certain minimal file characteristics are correct for a file. For example, as seen in the video, Xcode automatically creates both the implementation (.m) file and the header (.h) file for the new Objective-C class.