Linked by Jared White on Wed 7th May 2003 07:13 UTC
General Development Welcome back to Part 2 of Cocoa 101: Object-Oriented Programming for the Masses! I received a lot of great feedback on my previous article, and I'm looking forward to sharing with you once again what I've learned about Cocoa and the Objective-C language. If you missed Part 1 of this tutorial, read it here.
Permalink for comment
To read all comments associated with this story, please click here.
Memory-management mistakes
by Jared White on Wed 7th May 2003 17:03 UTC

Aaahhh! I did forget that I need to retain the calendar and color objects since they were already autoreleased. Yes, I didn't go too much into the fact that convention dictates, for the most part, that new objects returned by convenience class methods have been autoreleased. I'll make sure I fix this right away, along with the missing dealloc message that should be sent to the superclass after the instance variables have been released.

Thanks everyone for catching these mistakes!