[Openmcl-devel] Cocoa and memory management

Willem Rein Oudshoorn woudshoo at xs4all.nl
Fri Jul 5 19:13:40 UTC 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.

Wim Oudshoorn.





More information about the Openmcl-devel mailing list