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

< 前ページ次ページ > 目次を隠す

モデルクラスを指定する

  1. 「グループとファイル」リストから、Classesグループを選択します。

  2. 「ファイル」>「新規ファイル」を選びます。

  3. Objective-Cクラスの新規作成を選び、Converterという名前を指定します。

  4. Xcodeで、Converter.hConverter.mを同時に選択するために、コマンドキーを押しながらそれぞれをクリックします。

  5. 2つのファイルをクリックして、「グループとファイル」リストのClassesグループにドラッグします。

    注: プロジェクトファイルを「グループとファイル」リストのさまざまなグループに整理するのは非常によい習慣です。.hおよび.mファイルのデフォルトの場所は、「グループとファイル」リストのOther Sourcesグループです。大きなプロジェクトでは特に、クラスと非クラス(main.mなど)を分けるとよいでしょう。ただし、プロジェクトの編成はコンパイラに対しては違いはありません。



< 前ページ次ページ > 目次を隠す


Last updated: 2008-01-24




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