Skip navigation.
 
mlRe: Re: Can I tell which object is retaining my window?
FROM : Shawn Erickson
DATE : Mon Jul 31 20:32:51 2006

On 7/31/06, Drarok Ithaqua <<email_removed>> wrote:
> It's definitely the NSProgressIndicator subclass - it uses
> NSNotifications to inform the app what's going on.
> It appears that the NSNotification is retaining the window?!


Again what is the issue you are hitting... seeing retain/release sent
to an object while your application runs is to be expected. It is also
expected that NSNotification will retain the object related to the
notification and release that object once all listeners of that
notification have had a chance to process the notification.

Using ObjectAlloc you should be able to work out which retain is the
one that appears to be unbalanced if you are having an issue with your
window not going away... to me it sounds like some third party code
(or your own) is retaining your window and causing a retain cycle (for
example a view in a window shouldn't retain its window).

Review... <http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html#//apple_ref/doc/uid/20000043-1044135>

-Shawn

Related mailsAuthorDate
mlCan I tell which object is retaining my window? cocoa Jul 30, 16:40
mlRe: Can I tell which object is retaining my window? Mike Abdullah Jul 30, 16:52
mlRe: Can I tell which object is retaining my window? Mike Abdullah Jul 30, 16:55
mlRe: Can I tell which object is retaining my window? cocoa Jul 30, 16:56
mlRe: Can I tell which object is retaining my window? cocoa Jul 30, 16:59
mlRe: Can I tell which object is retaining my window? Shawn Erickson Jul 30, 17:06
mlRe: Can I tell which object is retaining my window? Shawn Erickson Jul 30, 17:12
mlRe: Can I tell which object is retaining my window? cocoa Jul 30, 17:13
mlRe: Can I tell which object is retaining my window? Mike Abdullah Jul 30, 17:17
mlRe: Can I tell which object is retaining my window? Matt Neuburg Jul 30, 17:18
mlRe: Can I tell which object is retaining my window? James Bucanek Jul 30, 18:16
mlRe: Can I tell which object is retaining my window? Tommy Nordgren Jul 30, 19:52
mlRe: Can I tell which object is retaining my window? Drarok Ithaqua Jul 31, 10:40
mlRe: Can I tell which object is retaining my window? Drarok Ithaqua Jul 31, 20:03
mlRe: Re: Can I tell which object is retaining my window? Shawn Erickson Jul 31, 20:32
mlRe: Can I tell which object is retaining my window? Drarok Ithaqua Jul 31, 20:46
mlRe: Re: Can I tell which object is retaining my window? Shawn Erickson Jul 31, 20:55