Book Image

Objective C Memory Management Essentials

Book Image

Objective C Memory Management Essentials

Overview of this book

Table of Contents (18 chapters)
Objective-C Memory Management Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Tips and Tricks for Memory Management

Memory management is something that every programmer dealing with Objective-C will encounter although Apple introduces a lot of tools to assist in ferreting out memory-related issues such as Instruments and NSZombies. There are some more subtle techniques and tools that are present in Objective-C and Xcode, which we will be looking into in this chapter. Some are obvious and some will give you a new perspective with regards to Objective-C. We will also cover some important topics such as:

  • Using the @property keyword

  • Using the getter/setter methods

  • Understand the property attribute in Objective-C

  • When to avoid KVC and KVO

So, let's get started!