I have read that Garbage collection is done in objective c using AUTOZONE(LIBAUTO).
Also garbage collector is available upto OS X 10.8. While studying i was thinking what is the need of ARC if garbage collector is available. Then from the sources on stackoverflow.com, i learned the difference between ARC and garbage collector and advantages of both over each other.
Now i know that ARC works at compile time and garbage collector works at run time. Also ARC is not able to release memory of CFTypes, it only works for objective C types. And Garbage collector could release retain cycles that couldn't be done using ARC.
Now i wanted to know that can we use both ARC and garbage collector together, since both are available in os x 10.7. Also why is garbage collector deprecated after 10.8. Is ARC an alternative to garbage collector and it can release every kind object that was done by garbage collector.
Also since garbage collector was not available in ios, then what was used in ios before ARC for garbage collection. Is manual memory management is able to manage everything if done correctly, and there is no need of garbage collection if Manual memory management is taken care of correctly?
std::shared_ptr
yourself is a sure sign of something gone wrong: do you really think you alone can do better than a bunch of other experts with years of experience? - DarkDust