• 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 09:40:45 +0100

The plot thickens!

I've found out what's causing this strange behaviour, it's a subclass of NSProgressIndicator (Or maybe the NSSlider) that I downloaded!
If I remove these two custom controls from my window, it all behaves as it's supposed to.


James Bucanek wrote:
email@hidden wrote on Sunday, July 30, 2006:
So, as far as I can tell - something else is sending retain messages to my window. Is there any way to find out what it is?

Debug > Launch Using Performance Tool > ObjectAlloc

ObjectAlloc can be configured to log all alloc, retain, and release messages sent to an object.

But as others have pointed out, it appears that you have some very odd retain/release usage. I suspect that your application is simply over-retaining objects. ObjectAlloc will quickly shed some light on what code is at fault.


James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>

_______________________________________________ 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
  • Prev by Date: Re: Sorting NSTableView
  • Next by Date: Preference Panes Universal Binary
  • Previous by thread: Re: Can I tell which object is retaining my window?
  • Next by thread: Strange malloc/free issue inside a category
  • Index(es):
    • Date
    • Thread