MemoryManagement

last edited April 2, 2009 21:35:58 (75.157.161.189)
CocoaDev is sponsored by: Panic: Shockingly good Mac software!

CocoaGlossary:Concepts (Cocoa) - Overview page for: [Topic]

Memory Management Overview Page

MemoryManagement is a very central topic to programming. Many different systems for MemoryManagement have been devised, but since this is a Cocoa site, we can ignore most of them.

In Cocoa with Objective-C, MemoryManagement is handled by RetainingAndReleasing objects. Starting with Objective-C 2.0 and Mac OS X 10.5, and also when you are programming Cocoa with Java, you have the added option of using GarbageCollection.

The best thing you can do to learn memory management is to read the first two lines of RulesOfThumb. Then read them again.

CocoaDev articles dealing with MemoryManagement:

External articles dealing with MemoryManagement

Non OS X, but some good background information on memory management principles: