Your model needs to be able to communicate with the view so it can understand what data is in the view’s text fields. Your view needs to connect with the model so it can receive updates when calculations are performed in which the results must be shown to the user. The controller consists of one or more classes whose sole purpose is to communicate between the model and the view.
In this chapter, you will learn about the paths used for communication between the objects and learn how to use Interface Builder to define those paths. You learn how to define what the controller does and how it can send messages using the paths you created between the model and the view.
Paths for Object Communication: Outlets, Targets, and Actions
Defining the Controller Class
Defining the Outlets for the ConverterController Class
Implementing the Controller Method: convert:
Interconnecting the Controller with the View
Connecting the Controller with the Model
Garbage Collection
What’s Next?
Last updated: 2007-10-31