Re: Re: Can I tell which object is retaining my window?
Re: Re: Can I tell which object is retaining my window?
- Subject: Re: Re: Can I tell which object is retaining my window?
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 31 Jul 2006 11:55:57 -0700
On 7/31/06, Drarok Ithaqua <email@hidden> wrote:
It's It's definitely not my own now. I've got my app to run
perfectly, but as soon as I add the 3rd party NSProgressIndicator in,
I get a ton of retain/releases, and my window doesn't dealloc.
A retain cycle sounds like the right term, it seems like an almost
infinite loop, but if I set the focus to another app, then back to mine,
the window is dealloced and the massive loop of retain/releases stops.
A retain cycle is simply two objects retaining each other either
directly or by a set of intermediate objects such that they will never
be deallocated since the always maintain a retain on each other. They
come about if you don't consider parent / child object ownership type
concepts.
I wasn't using that term to say anything about the numerous
retain/release messages you are seeing (again those may not be a
problem at all... just a cost of the implementation you have).
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden