Memory management in Objective C

Developers Area

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

View original post

Advertisements

About Neha Gupta

Software Engineer at Noida, India, Work on MAC OSX Application development with Cocoa, iOS development and Qt (Cross Platform Application Framework)

Posted on December 15, 2014, in Uncategorized. Bookmark the permalink. Leave a comment.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: