Cocoa Application Tutorial
PDF
Companion Files
Introduction
The Essence of Cocoa
What Is Cocoa?
Classes and Objects
The MVC Design Pattern
The Currency Converter Application
Creating a Project in Xcode
Open Xcode
Make a New Project
What’s Next?
Defining the Model
Specify the Model Class
Declare the Model Interface
Implementing the Model
What’s Next?
Defining the View: Building the User Interface
User Interface Elements and Interface Builder
Creating the Currency Converter Window
Refining the Layout and View Functionality
Test the Interface
What’s Next?
Bridging the Model and View: The Controller
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?
Building and Running Your Application
Build the Application
Run the Application
Correct Build Errors
Great Job!
What’s Next?
Configuring Your Application
The Info.plist File
Basic Project Attributes
Specify the Identifier, Version, and Copyright Information
Create an Icon File
What’s Next?
Expanding on the Basics
For Free with Cocoa
Turbo Coding with Xcode
Appendix A: Objective-C Quick Reference Guide
Messages and Method Implementations
Declarations
Revision History