4 ms·
Objective-C memory management is still an abstract concept that has, as the root of it's mechanism, objects. You create an object, you release an object. C's m
by stuhacking 16y ago
Objective-C memory management is still an abstract concept that has, as the root of it's mechanism, objects. You create an object, you release an object.
C's memory management has a simplistic interface: malloc/free. However it operates on the notion of raw memory space. You need to do more work figuring out how much memory you need based on the size of your objects.
C's memory management is not difficult, but it is more involved. The author says it pretty well when he states that Obj-C hits a middle ground between GC and manual memory management. It elevates the control of memory to a level where it makes more contextual sense.