Memory
Management in Objective-C
It has been said that
over 80% of bugs are related to memory problems.
Understanding and implementing robust memory
management practices in your application will
reduce bugs and improve the efficiency of your
application.
If you are used to programming in languages such as Basic where memory management is not an issue or if you are used to the raw memory management practices of C and C++ then you will need to change your thinking to work with Objective-C's reference counted memory management.
This course walks you through Objective-C's memory management techniques using over 86 minutes of video. By time you finish watching and implementing the techniques described in this course you will be able to develop robust leak free Objective-C applications.
If you are used to programming in languages such as Basic where memory management is not an issue or if you are used to the raw memory management practices of C and C++ then you will need to change your thinking to work with Objective-C's reference counted memory management.
This course walks you through Objective-C's memory management techniques using over 86 minutes of video. By time you finish watching and implementing the techniques described in this course you will be able to develop robust leak free Objective-C applications.
Who
Is This Course For?
Anyone who is new to
Objective-C and wishes to get a firm understanding
of implementing robust memory management in any
Foundation or Cocoa based application.
MEMBERS:
$4.99
NON-MEMBERS:
$9.99
86 Minute HD (1280 x
720) training video on Memory Management in
Objective-C. The video is formatted as DRM free
.mp4 files with the course being available as a
single file or with each chapter shipping as an
individual file. (Both 112MB)
You also receive the course formatted at 480x272 for use on your iPhone or iPod Touch again as either a single file or as individual chapter files (88MB)
All the sample code displayed on the training videos.
Most importantly you will get the warm fuzzy feeling of knowing you have supported the Mac Developer Network.
You also receive the course formatted at 480x272 for use on your iPhone or iPod Touch again as either a single file or as individual chapter files (88MB)
All the sample code displayed on the training videos.
Most importantly you will get the warm fuzzy feeling of knowing you have supported the Mac Developer Network.
What do you
get?
Course
Content
Part 1:
Introduction
A brief overview of what is in the course pack and what the course will cover. Duration: 3 Minutes.
Part 2: An Introduction to Memory
An overview of how memory works and the under lying principles of memory management. Duration: 13 Minutes.
Part 3: Memory Management with Objective-C
This sections examines the principles behind NSObject's reference counting system. Duration: 5 Minutes.
Part 4: Rule 1: release after alloc
This section examines our responsibility to release object we allocate. Duration: 7 Minutes.
Part 5: Rule 2: release after copy
This section examines our memory management responsibilities after doing a copy. Duration: 2 Minutes
Part 6: Rule 3: release after retain
This section examines how we can control the lifetime of objects using retain and the responsibilities this brings. Duration: 8 Minutes.
Part 7: Rule 4: autorelease objects returned from methods
This section examines the principle of Autorelease pools and autoreleasing and where its use is appropriate. Duration: 14 Minutes.
Part 8: Rule 5: Convienience constructors return autorelease objects
This section examines Convenience constructors and the memory management requirements that go with them. Duration: 4 Minutes.
Part 9: Rule 6: Understand Arrays and Collections
This section looks at the memory management issues associated with using arrays and collections. Duration: 8 Minutes.
Part 10: Summing up the rules
A quick review session to summarize the 6 rules of memory management. Duration: 3 Minutes
Part 11: Finding Memory Leaks with Instruments
This section looks at how to track down memory leaks using Apple's Instruments application that ships with Xcode. Duration: 8 Minutes
Part 12: Finding Problems with NSZombie
This last section looks at using NSZombie to find over releasing problems in our code. Duration: 5 Minutes.
A brief overview of what is in the course pack and what the course will cover. Duration: 3 Minutes.
Part 2: An Introduction to Memory
An overview of how memory works and the under lying principles of memory management. Duration: 13 Minutes.
Part 3: Memory Management with Objective-C
This sections examines the principles behind NSObject's reference counting system. Duration: 5 Minutes.
Part 4: Rule 1: release after alloc
This section examines our responsibility to release object we allocate. Duration: 7 Minutes.
Part 5: Rule 2: release after copy
This section examines our memory management responsibilities after doing a copy. Duration: 2 Minutes
Part 6: Rule 3: release after retain
This section examines how we can control the lifetime of objects using retain and the responsibilities this brings. Duration: 8 Minutes.
Part 7: Rule 4: autorelease objects returned from methods
This section examines the principle of Autorelease pools and autoreleasing and where its use is appropriate. Duration: 14 Minutes.
Part 8: Rule 5: Convienience constructors return autorelease objects
This section examines Convenience constructors and the memory management requirements that go with them. Duration: 4 Minutes.
Part 9: Rule 6: Understand Arrays and Collections
This section looks at the memory management issues associated with using arrays and collections. Duration: 8 Minutes.
Part 10: Summing up the rules
A quick review session to summarize the 6 rules of memory management. Duration: 3 Minutes
Part 11: Finding Memory Leaks with Instruments
This section looks at how to track down memory leaks using Apple's Instruments application that ships with Xcode. Duration: 8 Minutes
Part 12: Finding Problems with NSZombie
This last section looks at using NSZombie to find over releasing problems in our code. Duration: 5 Minutes.