Sherm Pendley wrote:
On Tue, Nov 2, 2010 at 4:48 PM, Sherm Pendley <email@example.com> wrote:
On Tue, Nov 2, 2010 at 1:39 PM, Matt Sergeant <firstname.lastname@example.org> wrote:
Just a simple question - when do I need to retain()/release() things in
CamelBones? I assume it's not done automagically?
It's semi-automatic. When an Objective-C object is passed to Perl, a
Perl object "wrapper" is created and a -retain is sent to the ObjC
object. When the "wrapper" object is destroyed by Perl (which happens
according to Perl's normal scoping & reference counting rules), its
destructor sends the corresponding -release to the object it wraps.
Okay, that's the intent at least... reviewing the relevant code, it
appears that isn't actually happening. :-(
Can you expand on that?