C/C++
memmgmt.txt
Associated article: Cocoa Memory Management
Tags: C/C++ Open Source JVM Languages Design
Published source code accompanying the article by Jose R.C. Cruz in which he examines how Cocoa, a Macintosh application development framework, handles a memory management scheme that's different from that of Java or C++. Also see MEMMGMT.ZIP.
Cocoa Memory Management by Jose R.C. Cruz Listing One theObj = [theClass new]; reference count is 1 [theObj retain]; reference count is 1+1 = 2 [theObj retain]; reference count is 2+1 = 3 [theObj release]; reference count is 3-1 = 2 [theObj release]; reference count is 2-1 = 1 [theObj release]; ...


