1 option
Learning Objective-C 2.0 : a hands-on guide to Objective-C for Mac and iOS developers
- Format:
- Book
- Author/Creator:
- Clair, Bob, Author.
- Series:
- Learning
- Addison-Wesley learning series Learning Objective-C 2.0
- Language:
- English
- Subjects (All):
- iOS (Electronic resource).
- Objective-C (Computer program language)--Programming.
- Objective-C (Computer program language).
- Object-oriented programming (Computer science).
- Macintosh (Computer).
- Physical Description:
- 1 online resource (1 v.) : ill.
- Edition:
- 2nd edition
- Place of Publication:
- [Place of publication not identified] Addison Wesley 2013
- Language Note:
- English
- System Details:
- text file
- Summary:
- Get Started Fast with Objective-C 2.0 Programming for OS X Mountain Lion, iOS 5.1, and Beyond Fully updated for Xcode 4.4, Learning Objective-C 2.0, Second Edition , is today’s most useful beginner’s guide to Objective-C 2.0. One step at a time, it will help you master the newest version of Objective-C 2.0 and start writing high-quality programs for OS X 10.8 Mountain Lion, iOS 5.1, and all of Apple’s newest computers and devices. Top OS X and iOS developer Robert Clair first reviews the essential object and C concepts that every Objective-C 2.0 developer needs to know. Next, he introduces the basics of the Objective-C 2.0 language itself, walking through code examples one line at a time and explaining what’s happening behind the scenes. This revised edition thoroughly introduces Apple’s new Automated Reference Counting (ARC), while also teaching conventional memory-management techniques that remain indispensable. Carefully building on what you’ve already learned, Clair progresses to increasingly sophisticated techniques in areas ranging from frameworks to security. Every topic has been carefully chosen for its value in real-world, day-to-day programming, and many topics are supported by hands-on practice exercises. Coverage includes · Reviewing key C techniques and concepts, from program structure and formats to variables and scope · Understanding how objects and classes are applied in Objective-C 2.0 · Writing your first Objective-C program with Xcode 4.4 · Using messaging to efficiently perform tasks with objects · Getting started with Apple’s powerful frameworks and foundation classes · Using Objective-C control structures, including Fast Enumeration and exception handling · Adding methods to classes without subclassing · Using declared properties to save time and simplify your code · Mastering ARC and conventional memory management, and knowing when to use each · Using Blocks to prepare for concurrency with Apple’s Grand Central Dispatch · Leveraging Xcode 4.4 improvements to enums and @implementation
- Contents:
- Intro
- Title Page
- Copyright Page
- Praise for the First Edition of Learning Objective-C 2.0
- Dedication Page
- Contents at a Glance
- Contents
- Preface
- About This Book
- Who Should Read This Book
- What You Need to Know
- About the Examples
- About the Exercises
- Objective-C-A Moving Target
- ARC or Not
- How This Book Is Organized
- We Want to Hear from You!
- Reader Services
- Acknowledgments
- About the Author
- Part 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
- Command Line Compiling and Debugging
- Summary
- Exercises
- 2. More about C Variables
- Memory Layout of a C Program
- Automatic Variables
- External Variables
- Declaration Keywords
- Scope
- Dynamic Allocation
- 3. An Introduction to Object-Oriented Programming
- Object-Oriented Programming
- An Introduction to Objective-C
- Objective-C Additions
- 4. Your First Objective-C Program
- Building with Xcode
- Objective-C Program Structure
- An Object-Oriented "Hello World"
- main.m
- Part II: Language Basics
- 5. Messaging
- Methods
- Messaging
- Messaging Details
- Under the Hood
- Message Forwarding
- Efficiency
- Introspection and Other Runtime Fun
- 6. Classes and Objects
- Defining a Class
- Subclassing a Class
- Creating Objects
- Destroying Objects
- Copying Objects
- 7. The Class Object
- Class Objects
- Other Class Methods
- Mimicking Class Variables
- 8. Frameworks
- What Is a Framework?
- Cocoa and Cocoa Touch
- AppKit
- UIKit
- Core Foundation
- Core Graphics
- Core Animation
- Other Apple-Supplied Frameworks.
- Third-Party Frameworks
- 9. Common Foundation Classes
- Immutable and Mutable Classes
- Class Clusters
- NSString
- Collection Classes
- NSNumber
- NSNull
- NSData
- NSURL
- Objective-C Literals and Object Subscripting
- Structures
- Geometry Structures on iOS
- 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
- 11. Categories, Extensions, and Security
- Categories
- Associative References
- Extensions
- Instance Variable Scope (Access Control)
- Hiding Your Instance Variable Declarations
- Access Control for Methods
- Namespaces
- Security
- Calling C Functions from Objective-C
- 12. Properties
- Accessing Instance Variables Outside of an Object (Don't Do It)
- Declaring and Implementing Accessors
- Accessors Using Properties
- Synthesized Instance Variables
- @synthesize by Default
- Synthesis Summary
- Private Properties
- The @property Statement
- More about @dynamic
- Properties without Instance Variables
- Properties and Memory Management
- A Look Ahead at Automatic Reference Counting (ARC)
- Subclassing and Properties
- Hidden Setters for readonly Properties
- Properties as Documentation
- Dot Syntax
- 13. Protocols
- The Rationale for Protocols
- Using Protocols
- TablePrinter Example
- Protocol Objects and Testing for Conformance
- Informal Protocols
- Part III: Advanced Concepts
- 14. Memory Management Overview
- The Problem
- The Solutions: Objective-C Memory Management
- Onward
- 15. Reference Counting
- Reference Counting Basics
- Receiving Objects
- Ownership
- dealloc.
- Returning Objects
- retainCount
- Multithreading
- When Retain Counts Go Bad
- Retain Cycles
- The Final Goodbye: When Programs Terminate
- 16. ARC
- What ARC Is and Is Not
- How ARC Works
- ARC Imposes Some Rules
- New Variable Qualifiers
- Properties
- ARC and Core Foundation
- Casting to and from void*
- ARC and Extra Autorelease Pools
- ARC and Exceptions
- Using ARC
- ARC Uses Runtime Functions
- More Information
- 17. Blocks
- Function Pointers
- NSInvocation
- Blocks
- Some Philosophical Reservations
- 18. A Few More Things
- Enums with a Fixed Underlying Type
- Forward Declarations of Methods in the @implementation Block Are No Longer Needed
- Some New Documentation
- Part 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 32-Bit and 64-Bit
- D. The Fragile Base Class Problem
- E. Resources for Objective-C
- Apple Resources
- Internet Resources
- Groups
- Books
- Index
- Footnotes
- Chapter 1
- Chapter 2
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 17.
- Notes:
- Bibliographic Level Mode of Issuance: Monograph
- Includes bibliographical references and index.
- Description based on publisher supplied metadata and other sources.
- ISBN:
- 9780133047400
- 0133047407
- 9780133047387
- 0133047385
- 9780321832085
- 0321832086
- OCLC:
- 825820238
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.