Adding a New File from the File Template Library

Add a new file to a project or workspace using the File Template library.

To add a new file from the File Template Library
  1. Choose Show 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 Create.

The File Template Library offers a convenient way to create files in your project or workspace.

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