Learning Objective-C 2.0 : a hands-on guide to Objective-C for Mac and iOS developers

Get Started Fast with Objective-C 2.0 Programming for OS X, iPhone, iPod touch, and iPad If you want to learn Objective-C 2.0 to write programs for Mac OS X, iPhone, iPad, or iPod touch, you’ve come to the right place! Concise, readable, and friendly, Learning Objective-C 2.0 is the perfect beginner...

Descripción completa

Detalles Bibliográficos
Otros Autores: Clair, Robert Author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: [Place of publication not identified] Addison Wesley 2011
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629129106719
Tabla de Contenidos:
  • Cover
  • Contents
  • Preface
  • Acknowledgments
  • About the Author
  • I: Introduction to Objective-C
  • 1 C, The Foundation of Objective-C
  • The Structure of a C Program
  • Variables
  • Operators
  • Expressions and Statements
  • Program Flow
  • Preprocessor
  • printf
  • Using gcc and gdb
  • Summary
  • Exercises
  • 2 More About C Variables
  • Memory Layout of an Objective-C Program
  • Automatic Variables
  • External Variables
  • Declaration Keywords
  • Scope
  • Dynamic Allocation
  • Summary
  • Exercises
  • 3 An Introduction to Object-Oriented Programming
  • Object-Oriented Programming
  • An Introduction to Objective-C
  • Objective-C Additions
  • Summary
  • 4 Your First Objective-C Program
  • Building with Xcode
  • Objective-C Program Structure
  • An Object-Oriented Hello World
  • HelloObjectiveC.m
  • Summary
  • Exercises
  • II: Language Basics
  • 5 Messaging
  • Methods
  • Messaging
  • Messaging Details
  • Under the Hood
  • Message Forwarding
  • Efficiency
  • Introspection and Other Runtime Fun
  • Summary
  • Exercises
  • 6 Classes and Objects
  • Defining a Class
  • Subclassing a Class
  • Creating Objects
  • Destroying Objects
  • Copying Objects
  • Summary
  • Exercises
  • 7 The Class Object
  • Class Objects
  • Other Class Methods
  • Mimicking Class Variables
  • Summary
  • Exercises
  • 8 Frameworks
  • What Is a Framework?
  • Cocoa Frameworks
  • AppKit
  • Core Foundation
  • Core Graphics
  • Core Animation
  • Other Apple-Supplied Frameworks
  • Third-Party Frameworks
  • Under the Hood
  • Summary
  • 9 Common Foundation Classes
  • Immutable and Mutable Classes
  • Class Clusters
  • NSString
  • Collection Classes
  • NSNumber
  • NSNull
  • NSData
  • NSURL
  • Structures
  • Summary
  • Exercises
  • 10 Control Structures in Objective-C
  • if Statements
  • for Statements and Implicit Loops
  • while Statements and NSEnumerator
  • Fast Enumeration.
  • An Example Using Fast Enumeration
  • Exceptions
  • Summary
  • Exercises
  • 11 Categories, Extensions, and Security
  • Categories
  • Extensions
  • Instance Variable Scope (Access Control)
  • Access Control for Methods
  • Namespaces
  • Security
  • Calling C Functions from Objective-C
  • Summary
  • Exercises
  • 12 Properties
  • Accessing Instance Variables Outside of an Object (Don't Do It)
  • Declaring and Implementing Accessors
  • Accessors Using Properties
  • The @property Statement
  • More About @dynamic
  • Properties and Memory Management
  • Subclassing and Properties
  • Hidden Setters for readonly Properties
  • Properties as Documentation
  • Dot Syntax
  • Summary
  • Exercises
  • 13 Protocols
  • Protocols
  • Using Protocols
  • TablePrinter Example
  • Protocol Objects and Testing for Conformance
  • Informal Protocols
  • Summary
  • Exercises
  • III: Advanced Concepts
  • 14 Reference Counting
  • The Problem
  • Reference Counting
  • Receiving Objects
  • Ownership
  • dealloc
  • Returning Objects
  • retainCount
  • Multithreading
  • When Retain Counts Go Bad
  • Retain Cycles
  • The Final Goodbye: When Programs Terminate
  • Summary
  • Exercises
  • 15 Garbage Collection
  • Garbage Collection: The Theory
  • Garbage Collection: The Practice
  • Using Garbage Collection
  • Finalizers
  • malloc and Garbage Collection
  • Core Foundation Objects and Garbage Collection
  • Some Bumps in the Road
  • Garbage Collection Pro and Con
  • Summary
  • Exercises
  • 16 Blocks
  • Function Pointers
  • The Trouble with Function Pointers
  • NSInvocation
  • Blocks
  • Some Philosophical Reservations
  • Summary
  • Exercises
  • IV: Appendices
  • A: Reserved Words and Compiler Directives
  • B: Toll-Free Bridged Classes
  • C: 32- and 64-Bit
  • Kernel and User Programs in 64-Bit
  • Coding Differences for 64-Bit Programs
  • Performance
  • Compiling for 64-Bit
  • More Information.
  • D: Runtimes, Old and New
  • Synthesized Instance Variables
  • The Fragile Base Class Problem-Solved
  • E: Resources for Objective-C
  • Apple Resources
  • Internet Resources
  • Groups
  • Books
  • Index.