Skip navigation.
 
mlRe: Can I tell which object is retaining my window?
FROM : Drarok Ithaqua
DATE : Mon Jul 31 20:03:22 2006

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?!

(gdb) backtrace
#0  -[DashboardWindow retain] (self=0x382780, _cmd=0x90aa9aa0) at /
Users/drarok/Development/Flix/DashboardWindow.m:25
#1  0x9292e040 in +[NSConcreteNotification 
newTempNotificationWithName:object:userInfo:] ()
#2  0x9292dec0 in -[NSNotificationCenter 
postNotificationName:object:userInfo:] ()
#3  0x9371988c in -[NSWindow _setWindowNumber:] ()
#4  0x9372a634 in _NSCreateWindow ()
#5  0x93729dac in -[NSWindow _commonAwake] ()
#6  0x93719624 in -[NSWindow 
_commonInitFrame:styleMask:backing:defer:] ()
#7  0x93718948 in -[NSWindow 
_initContent:styleMask:backing:defer:contentView:] ()
#8  0x93718730 in -[NSWindow 
initWithContentRect:styleMask:backing:defer:] ()
#9  0x00074a88 in -[DashboardWindow init] (self=0x382780, 
_cmd=0x90a4e1fc) at /Users/drarok/Development/Flix/DashboardWindow.m:9
#10 0x00053ccc in -[AppController setIsFullscreen:] (self=0x394cd0, 
_cmd=0x394c40, newSetting=1 '\001') at /Users/drarok/Development/Flix/
AppController.m:211
#11 0x00053974 in -[AppController toggleFullscreen:] (self=0x394cd0, 
_cmd=0x394c70, sender=0x356740) at /Users/drarok/Development/Flix/
AppController.m:180
#12 0x9378fc4c in -[NSApplication sendAction:to:from:] ()
#13 0x937ea4b8 in -[NSMenu performActionForItemAtIndex:] ()
#14 0x937ea23c in -[NSCarbonMenuImpl 
performActionWithHighlightingForItemAtIndex:] ()
#15 0x937e9ce4 in -[NSMenu performKeyEquivalent:] ()
#16 0x937e9930 in -[NSApplication _handleKeyEquivalent:] ()
#17 0x936f3408 in -[NSApplication sendEvent:] ()
#18 0x936ead10 in -[NSApplication run] ()
#19 0x937db87c in NSApplicationMain ()
#20 0x00032fac in main (argc=1, argv=0xbffffae0) at /Users/drarok/
Development/Flix/main.m:13
#21 0x00001eb4 in start ()
Current language:  auto; currently objective-c

On 30 Jul 2006, at 6:52 pm, Tommy Nordgren wrote:

>
> Jul 30, 2006 kl. 4:40 PM skrev <email_removed>:
>

>> I've got an application that was working fine until today, and now 
>> one of the temporary windows I create is being retained. A lot.
>>
>> Sample log, after I subclassed the retain and release methods to 
>> do logging:

>
>     Put break points at your class retain and release.
> At each breakpoint, execute the commands :
> backtrace
> continue
>
> After your app terminates, or you quit it abnormally,
> Save the console log to a file, it will list the call stack at each 
> call of retain/release
> ------------------------------------------------------
> "Home is not where you are born, but where your heart finds peace" -
> Tommy Nordgren, "The dying old crone"
> tommy.<email_removed>
>
>