coverpage
Objective-C Memory Management Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Introduction to Objective-C Memory Management
Why do we need memory management in Objective-C?
An object's ownership and life cycle
Ownership of object and reference counting
What's a memory leak and why pay attention to it?
What is an object within Objective-C?
Summary
Chapter 2. Automatic Reference Counting
What is ARC and how does it work?
How ARC looks
Project settings for ARC
A memory model in Objective-C
What you need to know about ARC and weak references
Summary
Chapter 3. Using Autorelease Pools
Understanding the autorelease pool mechanism
Autorelease pool mechanism
An overview of Apple autoreleased classes
ARC and autorelease
Autorelease pool blocks and threads
Summary
Chapter 4. Object Creation and Storage
Creation and initialization of objects
What is a class?
Object immutability
Object mutability
Inheritance
Convenience initializers
An Objective-C programmer's responsibility
The singleton pattern
Creating @property
Creating custom methods
String formatting
Summary
Chapter 5. Managing Your Application Data
Device memory
Caching
SQLite
Summary
Chapter 6. Using Core Data for Persistence
Why use Core Data?
Understanding Core Data concepts
Putting it into practice
Getting into the code
Saving data into the persistent store
Deleting data from the persistent store
Updating data
Summary
Chapter 7. Key-value Programming Approaches
What is key-value coding or KVC?
The NSKeyValueCoding protocol
Manual subsets of NSKeyValueCoding behavior
Associated objects
Selectors as keys
Maximum flexibility and handling unusual keys/values
Key-value observing
Summary
Chapter 8. Introduction to Swift
Welcome to Swift
Basics of Swift
Memory management in Swift
Summary
Chapter 9. Memory Management and Debugging
Memory leaks
Using the debugger and breakpoints
Collecting data on your app
Plumbing memory leaks
Using the LLVM / Clang Static Analyzer
Summary
Chapter 10. Tips and Tricks for Memory Management
Objective-C C and memory management
Getters and setters
The property attribute in Objective-C
Performance guidelines
Don't overthink about memory management
When to avoid KVC and KVO
Summary
Chapter 11. Features of Xcode 6
Introducing Xcode 6
What's new in storyboard
Debugging in Xcode 6
What's new in Interface Builder
Playground for Swift
Summary
Index
更新时间:2021-07-23 20:09:30