Book description
Learn the primary programming language for creating iPhone and Mac apps
The only thing hotter than the iPhone right now is new apps for the iPhone. Objective-C is the primary language for programming iPhone and Mac OS X applications, and this book makes it easy to learn Objective-C.
Even if you have no programming experience, Objective-C For Dummies will teach you what you need to know to start creating iPhone apps. It provides an understanding of object-oriented programming in an entertaining way that helps you learn.
iPhone and Mac apps are hot, and most are created with Objective-C
Covers Xcode 3.2, which is included in Mac OS X Snow Leopard
Explains object-oriented programming concepts in a straightforward but fun style that makes learning easy
Ideal for those with no programming experience as well as those who may know other languages but are new to Objective-C
Prepares you to start creating iPhone and Mac OS X apps
Understand Mac programming concepts and patterns, and why to use them
Bonus CD includes all code samples used in the book
Objective-C For Dummies gives you the tools to turn your idea for an iPhone app into reality.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
Table of contents
- Copyright
- About the Author
- Author's Acknowledgments
- Publisher's Acknowledgments
- Introduction
-
I. Getting to the Starting Line
- 1. Computer Programming Exposed!
- 2. Creating Your First Program
- 3. The Object in Objective-C
-
II. Speaking the Language of Objective-C
-
4. Language and Programming Basics
- 4.1. It All Comes Down to Your Statements
- 4.2. Understanding How Variables Work
-
4.3. Giving Instructions with Operators
- 4.3.1. Really learning how operators (and everything else) work in Objective-C
- 4.3.2. Using arithmetic operators
- 4.3.3. Back to variables — floats
- 4.3.4. Bitwise operators
- 4.3.5. Compound assignment operators
- 4.3.6. Increment and decrement operators
- 4.3.7. Comma operator
- 4.3.8. Cast operator
- 4.3.9. Sizeof operator
- 4.4. Making Logical Decisions in Your Code
- 4.5. Accessing Data with Pointers
- 4.6. Using Constants
- 4.7. Knowing the Objective-C Reserved Words
- 4.8. Congratulations
- 5. Functions and Data Structures
-
6. Adding a Little More Class to Your Program
- 6.1. Grasping Objects and Their Classes
- 6.2. Moving from Functions and Global Data to Objects and Classes
- 6.3. Creating the Interface
- 6.4. The Implementation — Coding the Methods
- 6.5. Exploring the Program Logic
- 6.6. Spreading the Wealth across Files
- 6.7. Knowing the Naming Conventions
- 6.8. Using id and nil
- 7. Objects Objects Everywhere
- 8. Using the Debugger
- 9. Using Control Statements and Loops
-
4. Language and Programming Basics
-
III. Walking the Object-Oriented Walk
- 10. Basic Inheritance
- 11. Encapsulating Objects
- 12. The Birth of an Object
- 13. Getting a Handle on Memory Management
-
IV. Moving from Language to Application
- 14. Getting Data from Other Objects
- 15. Show Me the Data
- 16. Extending the Behavior of Objects
- 17. Adding an iPhone User Interface
- 18. Adding a Mac User Interface
-
V. The Part of Tens
-
19. Ten Debugging Tips
- 19.1. Check for Semicolons
- 19.2. "Right" Is Not Always "right"
- 19.3. When You've Blown It, You've Blown It
- 19.4. Compiler Warnings Are for Your Own Good
- 19.5. Don't Forget about Memory Errors
- 19.6. Get Friendly with Your Debugger
- 19.7. Messages to nil
- 19.8. Dialing a Wrong Number
- 19.9. Create a "Paper" Trail
- 19.10. Incrementally Test
- 19.11. Use Your Brain
-
20. Ten Ways to Be a Happy Developer
- 20.1. Keep Everyone in the Dark
- 20.2. Make Your Code Easy to Understand
- 20.3. Remember Memory
- 20.4. Start by Initializing the Right Way
- 20.5. Take Advantage of the Documentation
- 20.6. Code Code Code
- 20.7. Understand that Development Is Not Linear
- 20.8. Do It Right from the Start if You Need to Do It Right from the Start
- 20.9. Avoid the Code Slinger Mentality
- 20.10. The Software Isn't Finished until the Last User Is Dead
- 20.11. Keep It Fun
- A. About the CD
-
19. Ten Debugging Tips
Product information
- Title: Objective-C® For Dummies®
- Author(s):
- Release date: October 2009
- Publisher(s): For Dummies
- ISBN: 9780470522752
You might also like
book
Objective-C
A soup-to-nuts guide on the Objective-C programming language Objective-C is the language behind Cocoa and Cocoa …
book
Pro Objective-C
The Objective-C programming language continues to grow in popularity and usage because of the power and …
book
Cocoa and Objective-C: Up and Running
Build solid applications for Mac OS X, iPhone, and iPod Touch, regardless of whether you have …
book
Beginning Objective-C
Objective-C is today's fastest growing programming language, at least in part due to the popularity of …