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

< Previous PageNext Page > Hide TOC

Defining the Controller Class

Interface Builder is a versatile tool for application developers. It enables you to not only compose the application’s graphical user interface, it gives you a way to define much of the programmatic interface of the application’s classes and to connect the objects eventually created from those classes.

The rest of the chapter shows how to define the ConverterController class and connect it to Currency Converter’s user interface.

In Xcode, choose File > New File.

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

  2. Choose Objective-C Class and click Next.

  3. Name the file ConverterController.m.

  4. Make sure “Also create ‘ConverterController.h’” is selected and click Finish.



< 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