Retain and release have no effect on ObjC types when using garbage collection. If your code is written relying on retain counting then you should turn off garbage collection since you're trying to manage the memory yourself (and probably designed the code as such). Garbage collection has specific requirements on how you treat objects to help the collector know what to deallocate and what to keep around.

If you really want to stick with GC, read the docs on it to understand how it works and how it determines what and when to deallocate.


On Jun 2, 2008, at 3:05 AM, Francis Perea wrote:

Hi Michael.

I've also supposed it was happening that, and I've tried to correct it by using retain in each one of init methods of both classes, but no results.

What I mean is, in every init method, when I call the [super init] I've tried [[super init] retain]. But no way.

Any other suggestion?

Thanks for your reply.

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to