Re: Main window disappears. Sometimes.
Re: Main window disappears. Sometimes.
- Subject: Re: Main window disappears. Sometimes.
- From: Michael Vannorsdel <email@hidden>
- Date: Mon, 2 Jun 2008 03:19:57 -0600
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@hidden)
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:
This email sent to email@hidden