Objective-C® Programming For Dummies®
Visit www.dummies.com/cheatsheet/objectivecprogramming to view this book's cheat sheet. Table of Contents Introduction About This Book Conventions Used in This Book Foolish Assumptions How This Book Is Organized Part I: Getting to the Starting Line Part II: Speaking the Language of Objective-C Part III: Walking the Object-Oriented Walk Part IV: Moving fromLanguage to Application Part V: The Part of Tens Icons Used in This Book On the Web Where to Go from Here Part I: Getting to the Starting Line Chapter 1: Computer Programming Exposed! Why a Computer Program Is Like a Recipe Examining a simple computer program Understanding How Computer Languages Work Creating a computer program Running a computer program What Is Objective-C, Anyway? Understandingprogramming languages Running your program in a runtime environment
Using frameworks and libraries Your suite of development tools Using Xcode 4.4 Using Objective-C Version 2.0 Chapter 2: Creating Your First Program Getting Started with the Software Development Kit Downloading Xcode Creating Your Xcode Project Exploring your project Workspace areas Displaying an area’s content The toolbar andTab bar The First Program Project The Project editor The Project navigator Building and Running Your Application Building an app All that stuff in main.m Customizing Xcode to Your Liking Getting to Know the Xcode Text Editor Accessing Documentation Quick Help The header file for a symbol Accessing Quick Help Help menu Find On the Web Working with the Examples Chapter 3: The Object in Objective-CNot All Modules Are Created Equal
Understanding How Objects Behave Seeing the Concepts in Action Encapsulation Polymorphism Reusable Code Part II: Speaking the Language of Objective-C Chapter 4: Language and Programming Basics It All Comes Down to Your Statements Syntax Semantics Understanding How Variables Work Data types Identifier Initialization Giving Instructions with Operators Reallylearning how operators (and everything else) work in Objective-C Using arithmetic operators Back to variables — floats Bitwise operators Compound assignment operators Increment and decrement operators Comma operator Cast operator sizeof operator Making Logical Decisions in Your Code Boolean types Relational and equality operators Logical operators Conditional operator
Accessing Data with PointersUsing Constants Declared constants (const) Defined constants (#define) Knowing the Objective-C Reserved Words Congratulations Chapter 5: Functions and Data Structures Thinking about an Application Defining and Declaring Data Structures Using Defined Data Types Writing Functions Scope of variables Unions Enumerations (enum) Declaring Function Prototypes Extending the Functionality of a ProgramThinking about Extensibility and Enhanceability Chapter 6: Adding a Little More Class to Your Program Grasping Objects and Their Classes Moving from Functions and Global Data to Objects and Classes Creating the Interface Declaring the class interface Scoping instance variables The Implementation — Coding the Methods Adding the implementation compiler directive Defining the createBudget: methodDefining the rest of the methods Exploring the Program Logic Coding the functionality in the main function
Building and running the application Extending the program Spreading the Wealth across Files Knowing the Naming Conventions Using id and nil Chapter 7: Objects Objects Everywhere Replacing Numbers with Objects Revisiting the documentation Using an NSNumber as an argument Taking Advantage ofArray Objects Container classes Tiptoeing through an array Adding mutable arrays Working with fixed arrays Using C Arrays Expanding to multidimensional arrays Finishing up with the main function Chapter 8: Using the Debugger Identifying the Usual Suspects Catching syntax errors Fixing it with Live Issues and Fix-It Crashing with runtime errors Dealing with logic errors Using the Debugger Using...
Ler documento completo
Por favor, assinar para o acesso.