• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I tell which object is retaining my window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Can I tell which object is retaining my window?
  • From: Drarok Ithaqua <email@hidden>
  • Date: Mon, 31 Jul 2006 19:03:22 +0100

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@hidden:

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"
email@hidden




_______________________________________________ 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
  • Follow-Ups:
    • Re: Re: Can I tell which object is retaining my window?
      • From: "Shawn Erickson" <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>)

  • Prev by Date: Re: Keeping an App Alive
  • Next by Date: Checking a method for parameter types via SEL
  • Previous by thread: Re: Can I tell which object is retaining my window?
  • Next by thread: Re: Re: Can I tell which object is retaining my window?
  • Index(es):
    • Date
    • Thread