Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Can I tell which object is retaining my window?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Can I tell which object is retaining my window? (From: email@hidden)
 >Re: Can I tell which object is retaining my window? (From: Tommy Nordgren <email@hidden>)
 >Re: Can I tell which object is retaining my window? (From: Drarok Ithaqua <email@hidden>)
 >Re: Re: Can I tell which object is retaining my window? (From: "Shawn Erickson" <email@hidden>)
 >Re: Can I tell which object is retaining my window? (From: Drarok Ithaqua <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.