Summary

We got a great start programming in this chapter! We started by building a real project with PB. Then we used IB and Objective-C to build user interface objects, create and customize our own class, and connect these user interface objects with an object of our new class. We also learned a little more about Objective-C and some AppKit classes, and a lot about the files that PB generates. In the process, we used four important operations that IB can perform on classes: Subclass, Instantiate, Read Files, and Create Files. These operations were all found in the Classes menu in IB (some of these operations can be performed in ways other than using the menu commands).

These operations are the basic building blocks that you will use to create your own applications, although the order in which you use them will vary from project to project. Typically, the steps for creating an application are the following:

  1. Create a project using PB.

  2. Build the application’s user interface using IB.

  3. Customize the buttons and other user interface items in IB.

  4. Design the application’s Controller class.

  5. Connect the controls to the Controller, and vice versa.

  6. Add code to make the Controller class work.

  7. Compile, test, and fix the code that you have created.

  8. Tweak the user interface as necessary.

In the next chapter, we’ll add an About box (dialog) and some icons to our Calculator application, and we’ll find out how to increase the efficiency of a Cocoa application by using separate nib files.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.37.196