Skip to Main Content
iPhone SDK Programming: Developing Mobile Applications for Apple iPhone and iPod touch
book

iPhone SDK Programming: Developing Mobile Applications for Apple iPhone and iPod touch

by Maher Ali
March 2009
Beginner to intermediate content levelBeginner to intermediate
396 pages
8h 44m
English
Wiley
Content preview from iPhone SDK Programming: Developing Mobile Applications for Apple iPhone and iPod touch

Chapter 1. Objective-C and Cocoa

This chapter presents the main features of the Objective-C language under the Cocoa environment. The organization of this chapter is as follows. In Section 1.1, we introduce the main concepts behind classes in Objective-C. In that section, you will learn how to declare a new class, define it, and use it from within other classes. You will also be exposed to important Cocoa classes and data types.

After that, you will learn in Section 1.2 about memory management in the iPhone OS. You will learn about how to create new objects as well as how to deallocate them, and you will also learn about your responsibility when obtaining objects from Cocoa frameworks or other frameworks.

Section 1.3 introduces the topic of Objective-C protocols. You will learn how to adopt protocols and how to declare new ones as well. You will learn in Section 1.4 about properties, an Objective-C language feature that allows you to access instance variables using the dot notation. The concept of categories is the subject of Section 1.5. These allow you to extend existing classes by adding new methods. Posing is another technique that is slightly different from categories. Posing allows you to replace a given class with one of its descendants. This is discussed in Section 1.6.

Exceptions and error handling are important features in any modern language. Section 1.7 covers both of these techniques and shows you the appropriate use of each feature. After covering exceptions and errors ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Office Access 2007 on Demand

Microsoft® Office Access 2007 on Demand

Steve Johnson - Perspection, Inc.
FileMaker Pro 14: The Missing Manual

FileMaker Pro 14: The Missing Manual

Stuart Gripman, Susan Prosser
Microsoft® Office Access™ 2007 Step by Step

Microsoft® Office Access™ 2007 Step by Step

Steve Lambert Joan Lambert and M. Dow Lambert III

Publisher Resources

ISBN: 9780470742822Purchase book