Quote:
Originally Posted by smasher
It's not a shock; the memory management model is a rare one. Most people haven't seen it before, and it doesn't have a direct analogue in most other platforms. Noobs can be forgiven for thinking that release is like free() , or that retainCount is like automatic reference counting in Java.
It's not like they don't understand classes, or methods, or variables, all of which exist in other commonly-used languages.
|
Well, the mechanics behind the scenes might be complex, but the actual rule that one needs to follow to avoid leaks/over-releasing are pretty simple. And yet, people avoid learning these rules and implement crazy workarounds where they throw retains and releases around until it doesn't crash/leak anymore.