Noticing how badly implemented is reference counting in current Objective-C (see here and here), i'm sure there must be a library out there providing something similar to c++ shared_ptr
and weak_ptr
semantics without all those ridiculous extra calls to retain
and release
that should be called automatically when (pointer) variables go out of scope
Is this possible on ObjC? I know that ObjC does not have destructors so there is no way to have something called automatically when variables go out of scope, but how can these retain
/release
calls be really necessary? am i going around this in the wrong way?