Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Specify the Model Class

  1. Select the Classes group in the Groups & Files list.

  2. Choose File > New File.

  3. Choose to create a new Objective-C Class and name it Converter.

  4. In Xcode, select both Converter.h and Converter.m by holding down command and clicking on each.

  5. Click-and-drag both files into the Classes group in the Groups & Files list.

    Note: Organizing your project files in the various groups in the Groups & Files list is simply good practice. The default location for all .h and .m files is the Other Sources group in the Groups & Files list. It is a good idea to separate classes from non-classes (like main.m), especially in larger projects. However, the organization of your project makes no difference to the compiler.



< Previous PageNext Page > Hide TOC


Last updated: 2007-10-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice