Book description
In just 24 sessions of one hour or less, you can master the Objective-C language, and start using it to write powerful native applications for both Macs and iOS devices! Using this book’s straightforward, step-by-step approach, you’ll get comfortable with Objective-C’s unique capabilities… make the most of its powerful implementation of objects and messaging…work effectively with design patterns, collections, blocks, threading, and a whole lot more. Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success!
Step-by-Step Instructions carefully walk you through the most common Objective-C development tasks.
Quizzes and Exercises at the end of each chapter help you test your knowledge.
By the Way notes present information related to the discussion.
Did You Know? tips offer advice or show you easier ways to perform tasks.
Watch Out! cautions alert you to possible problems and give you advice on how to avoid them.
Printed in full color—figures and code appear as they do in Xcode
Use Xcode to write Objective-C software more quickly and efficiently
Master Objective-C’s object-oriented features and techniques
Efficiently organize program files and projects
Make the most of Objective-C’s powerful messaging capabilities
Declare classes, instance variables, properties, methods, and actions
Leverage building block patterns to write more powerful code
Work with mutable and immutable data types
Organize data with collections, including dictionaries and sets
Manage memory the modern way, with Automatic Reference Counting (ARC)
Expand and extend classes with protocols, delegates, categories, and extensions
Apply recent language enhancements such as Associative References and Fast Enumeration
Create and work with portable, anonymous code blocks
Manage queues and threading with Grand Central Dispatch
Table of contents
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
- Part I. Getting Started with Objective-C
-
Part II. Working with the Objective-C Basics
- Hour 6. Exploring Messaging and a Testbed App
- Hour 7. Declaring a Class in an Interface File
-
Hour 8. Declaring Instance Variables in an Interface File
- Declaring Instance Variables and Properties
- Using the Class
- Creating an Instance Variable for CurrencyConverter with id
- Creating an Instance Variable for CurrencyConverter with the Class Name
- Creating an Instance Variable for CurrencyConverter with a Superclass Name
- Managing Instance Variable Scope
- Summary
- Q&A
- Workshop
- Hour 9. Declaring Properties in an Interface File
- Hour 10. Declaring Methods in an Interface File
- Hour 11. Declaring Actions in an Interface File
- Hour 12. Routing Messages with Selectors
- Hour 13. Building on the Foundation
- Hour 14. Defining a Class in an Implementation File
- Hour 15. Organizing Data with Collections
- Hour 16. Managing Memory and Runtime Objects
- Part III. Expanding and Extending Classes
- Part IV. Beyond the Basics
-
Part V. Appendixes
- Appendix A. C Syntax Summary
- Appendix B. Apps, Packages, and Bundles
- Appendix C. Archiving and Packaging Apps for Development and Testing
-
Appendix D. Introducing Xcode 4
- Getting to Know Xcode
- Goodbye “Hello, World”
- Hello, App Development for Mac OS X and iOS
- Getting Started with Xcode
- Using the Navigator
- Using Editors
- Working with Assistant
- Getting Help in an Editor Window
- Using Utilities—Inspectors
- Using Utilities—Libraries
- Using the Text Editor
- Using the Organizer Window
- Index
Product information
- Title: Sams Teach Yourself Objective-C in 24 Hours
- Author(s):
- Release date: March 2012
- Publisher(s): Sams
- ISBN: 9780132939881
You might also like
book
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy
Learn Objective-C and its latest release, and learn how to mix Swift with it. You have …
book
Objective-C: Visual QuickStart Guide
Objective C 2.0 is the object-oriented language that is the basis for Cocoa and Cocoa Touch, …
book
Pro Objective-C
The Objective-C programming language continues to grow in popularity and usage because of the power and …
book
Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition
Get Started Fast with Objective-C 2.0 Programming for OS X Mountain Lion, iOS 5.1, and Beyond …