Memory management in Objective C

How memory management is done in objective C?

The latest OS X and IOS versions (IOS 5, OSX 10.7 and above) supports Automatic Reference Counting (ARC), a memory management enhancement in Objective C. Before that programmers have to follow the Manual Retain Release procedure. Go through the slides below to understand Memory Management in Objective C with reference to IOS and Cocoa. Also learn about the introduction of ARC and how it works.

Topics Covered:

– About Memory Management and IOS, OSX versions

– Reference Counting

– Taking ownership of an Object

– Relinquishing ownership of an Object

– Memory Leak and Dangling pointer

– Strong, Retain and Copy

– Autorelease method

– Autorelease pools

– Dealloc

– Automatic Reference Counting

– Zeroing Weak References

– Garbage Collector

Written By: Neha Gupta

Advertisements

One thought on “Memory management in Objective C

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s