[Openmcl-devel] Cocoa and memory management
Willem Rein Oudshoorn
woudshoo at xs4all.nl
Fri Jul 5 14:13:40 CDT 2013
Just my two cents,
I do not think that Cocoa guarentees that if you do
[[[SomeNiceClass alloc] initWith: ...] release]
that all memory is immediately freed.
I think that the init/release methods of SomeNiceClass are allowed
to autorelease some ivars.
One way of testing this is to explicitly create and release autorelease pools
in your loop.
More information about the Openmcl-devel