Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Managing Memory in Objective-C

10. Managing Memory in Objective-C

In this chapter, you’ll learn about memory management in Objective-C. Objective-C keeps track of all the objects you create with a retain count, and when that count goes down to zero, Objective-C automatically deallocates the memory allocated to an object.

For example, say that you create two objects:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial