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

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

コントローラクラスの定義

Interface Builderはアプリケーション開発者向けの多目的に利用できるツールです。Interface Builderを使うと、アプリケーションのグラフィカルユーザインターフェイスの作成だけでなく、アプリケーションのクラスのプログラムインターフェイスのほとんどを定義し、それらのクラスから最終的に作成されたオブジェクトを接続する手段が提供されます。

この章の残りでは、ConverterControllerクラスを定義し、それをCurrency Converterのユーザインターフェイスに接続する方法を示します。

Xcodeでは、「ファイル」>「新規ファイル」を選びます。

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

  2. 「Objective-C Class」を選び、「次へ」をクリックします。

  3. ファイルをConverterController.mと名付けます。

  4. 「同時に"ConverterController.h"も作成」が選択されていることを確認し、「完了」をクリックします。



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


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