mmalcolm Crawford, Apple Computer, Inc.
Date: Tuesday, October 28
Time: 1:45pm - 2:30pm
Location: Lafayette/San Tomas/Lawrence
Newcomers to Cocoa often struggle with Cocoa's memory management. Crawford's talk presents a few simple rules that can make life easy. Failure to adhere to the rules will almost certainly lead at some point to memory leaks, or runtime exceptions due to messages being sent to freed objects.
Accessor methods can play an important part in facilitating memory management, however there are a number of different ways in which they can be written. The presentation outlines these, and illustrates situations in which each technique is appropriate.
Autorelease pools can play an important part in making memory use more efficient. Crawford shows how to employ autorelease pools, and how judicious use can reduce an application's memory footprint.