ADVERTISEMENT
|
|
24.02 The Road to Code: There's a Hole in Your Bucket
Article Synopsis
Welcome back to The Road to Code. In previous articles, we've talked about dynamic memory management and how to use malloc and free in C. We've also covered using alloc and release in Objective-C. Unfortunately, I left out a lot of the details of Objective-C memory management, mentioning only that alloc and release worked the same as malloc and free. This was a white lie, and the truth is that they are a bit more complicated. While the complications are a bit of a hurdle to overcome, they paradoxically make it easier on the programmer, in the long run.
This article was published in the 24.02 issue of MacTech Magazine. Subscribers saw
this article in the print magazine when it was first published. MacTech provides its readers with valuable information
each and every month, but even if it only solves one problem for you a year, it's more than paid for itself.
Subscribe today with a special RISK FREE trial subscription ... and get the back issues at the MacTech Store, or the new MacTech CD with the history of
the magazine all in one convenient place.
|